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)
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
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)
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
def visit_variable(self, variableNode: VariableNode): return variableNode.return_vector(self)
def visit_variable(self, variableNode: VariableNode): return variableNode.returnChildren()