public class ParserVariableHelper extends Object
Constructor and Description |
---|
ParserVariableHelper() |
Modifier and Type | Method and Description |
---|---|
VariableInfo |
createClosureArgumentVariable(NamespaceModel namespace,
String name,
Type type,
org.antlr.runtime.tree.Tree tree)
Creates a local variable for a closure argument (during parsing of a closure body).
|
VariableInfo |
createForeachIteratorVariable(NamespaceModel namespace,
String name,
Type type,
org.antlr.runtime.tree.Tree tree)
Creates a local variable for foreach iterator.
|
VariableInfo |
createFunctionArgumentVariable(NamespaceModel namespace,
String name,
Type type,
ASTRange range)
Creates a local variable for function parameter (to parse function body).
|
VariableInfo |
createLocalVariable(NamespaceModel namespace,
String name,
Type type,
org.antlr.runtime.tree.Tree tree)
Creates a local variable.
|
public VariableInfo createLocalVariable(NamespaceModel namespace, String name, Type type, org.antlr.runtime.tree.Tree tree)
namespace
- name
- a variable nametype
- a variable typetree
- a tree of the variable identifierpublic VariableInfo createClosureArgumentVariable(NamespaceModel namespace, String name, Type type, org.antlr.runtime.tree.Tree tree)
namespace
- name
- a variable nametype
- a variable typetree
- a tree of the variable identifierpublic VariableInfo createForeachIteratorVariable(NamespaceModel namespace, String name, Type type, org.antlr.runtime.tree.Tree tree)
namespace
- name
- type
- tree
- public VariableInfo createFunctionArgumentVariable(NamespaceModel namespace, String name, Type type, ASTRange range)
namespace
- name
- type
- range
- Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.