Beispiel #1
0
 public void AddSourceInfoForASTNode(ASTNode node, string absolutePath, int lineNumber)
 {
     Debug.Assert(!ASTNodeToSourcePathMap.ContainsKey(node));
     Debug.Assert(!ASTNodeToSourceLineNumberMap.ContainsKey(node));
     ASTNodeToSourcePathMap[node]       = absolutePath;
     ASTNodeToSourceLineNumberMap[node] = lineNumber;
 }
Beispiel #2
0
 public string GetAbsoluteSourcePathOfASTNode(ASTNode node)
 {
     Debug.Assert(ASTNodeToSourcePathMap.ContainsKey(node));
     return(ASTNodeToSourcePathMap[node]);
 }