C# Class Dynamo.Graph.Nodes.Statement

ファイルを表示 Open project: DynamoDS/Dynamo Class Usage Examples

Public Methods

Method Description
CreateInstance ( ProtoCore.AST.Node parsedNode ) : Statement

Creates Statement from node

GetDefinedVariableNames ( Statement s, bool onlyTopLevel ) : List

Returns the names of the variables that have been declared in the statement

GetReferencedVariableNames ( Statement s, bool onlyTopLevel ) : List

Returns the names of the variables that have been referenced in the statement

GetReferencedVariables ( ProtoCore.AST.Node astNode, List refVariableList ) : void

Returns variables from AST nodes. E.g. a+5. Here "a" is variable.

Private Methods

Method Description
GetDefinedIdentifier ( ProtoCore.AST.Node leftNode ) : ProtoCore.AST.AssociativeAST.IdentifierNode
GetStatementType ( ProtoCore.AST.Node astNode ) : StatementType

Returns statement type.

Statement ( ProtoCore.AST.Node parsedNode ) : System

Method Details

CreateInstance() public static method

Creates Statement from node
public static CreateInstance ( ProtoCore.AST.Node parsedNode ) : Statement
parsedNode ProtoCore.AST.Node
return Statement

GetDefinedVariableNames() public static method

Returns the names of the variables that have been declared in the statement
public static GetDefinedVariableNames ( Statement s, bool onlyTopLevel ) : List
s Statement Statement whose variable names to be queried.
onlyTopLevel bool Bool to check if required to return reference variables in sub statements as well
return List

GetReferencedVariableNames() public static method

Returns the names of the variables that have been referenced in the statement
public static GetReferencedVariableNames ( Statement s, bool onlyTopLevel ) : List
s Statement Statement whose variable names to be got.
onlyTopLevel bool Bool to check if required to return reference variables in sub statements as well
return List

GetReferencedVariables() public static method

Returns variables from AST nodes. E.g. a+5. Here "a" is variable.
public static GetReferencedVariables ( ProtoCore.AST.Node astNode, List refVariableList ) : void
astNode ProtoCore.AST.Node
refVariableList List list of variables
return void