SetLoc() public method

public SetLoc ( IronPython.Compiler.Ast.PythonAst globalParent, IndexSpan span ) : void
globalParent IronPython.Compiler.Ast.PythonAst
span IndexSpan
return void
Example #1
0
 private void CompleteParameterName(Node node, string name, Dictionary<string, object> names) {
     SourceSpan span = GetSpan();
     _sink.StartName(span, name);
     CheckUniqueParameter(names, name);
     node.SetLoc(span);
 }
Example #2
0
 private void CompleteParameterName(Node node, string name, HashSet<string> names) {
     if (_sink != null) {
         _sink.StartName(GetSourceSpan(), name);
     }
     CheckUniqueParameter(names, name);
     node.SetLoc(_globalParent, GetStart(), GetEnd());
 }
Example #3
0
 private void CompleteParameterName(Node node, SymbolId name, Dictionary<SymbolId, object> names) {
     SourceSpan span = GetSpan();
     _sink.StartName(span, SymbolTable.IdToString(name));
     CheckUniqueParameter(names, name);
     node.SetLoc(span);
 }