Пример #1
0
def primaryExpr1(self, __stack, __ptr):
    """
    from XPath/XPathBase.bgen.frag, line 292
    primaryExpr: VARIABLE_REFERENCE
    """
    __val = ParsedExpr.ParsedVariableReferenceExpr(__stack[__ptr + 1])
    return __val
Пример #2
0
 def createVariableReference(self, prefix, localName):
     if prefix:
         return ParsedExpr.ParsedVariableReferenceExpr('$' + prefix + ':' +
                                                       localName)
     else:
         return ParsedExpr.ParsedVariableReferenceExpr('$' + localName)