예제 #1
0
 def __init__(self,
              id,
              variableName,
              operator,
              resolverUtil,
              variableDeclaration=None):
     VariableNode.__init__(self, id, resolverUtil, variableName,
                           variableDeclaration)
     from ADT.Utils.ResolverUtil import resolveNodeViaType
     self.operator = resolveNodeViaType(operator["$type"], operator,
                                        resolverUtil)
예제 #2
0
 def __init__(self,
              id,
              variableName,
              isReference,
              isDefinition,
              isDeclaration,
              resolverUtil,
              variableDeclaration=None):
     VariableNode.__init__(self, id, resolverUtil, variableName,
                           variableDeclaration)
     self.isReference = isReference
     self.isDefinition = isDefinition
     self.isDeclaration = isDeclaration
예제 #3
0
    def __init__(self,
                 id,
                 variableName,
                 array,
                 subscript,
                 resolverUtil,
                 variableDeclaration=None):
        VariableNode.__init__(self, id, resolverUtil, variableName,
                              variableDeclaration)

        from ADT.Utils.ResolverUtil import resolveNodeViaType
        self.array = resolveNodeViaType(array["$type"], array, resolverUtil)
        self.subscript = resolveNodeViaType(subscript["$type"], subscript,
                                            resolverUtil)
예제 #4
0
 def __init__(self,
              id,
              variableName,
              variable,
              dereference,
              field,
              resolverUtil,
              variableDeclaration=None):
     VariableNode.__init__(self, id, resolverUtil, variableName,
                           variableDeclaration)
     from ADT.Utils.ResolverUtil import resolveNodeViaType
     self.variable = resolveNodeViaType(variable["$type"], variable,
                                        resolverUtil)
     self.dereference = dereference
     self.field = field
예제 #5
0
 def visit_variable(self, variableNode: VariableNode):
     return variableNode.return_vector(self)
예제 #6
0
 def visit_variable(self, variableNode: VariableNode):
     return variableNode.returnChildren()