internal override void AddReference(Node node, AnalysisUnit unit) {
     if (!unit.ForEval) {
         if (_references == null) {
             _references = new ReferenceDict();
         }
         _references.GetReferences(unit.DeclaringModuleEnvironment.ProjectEntry)
             .AddReference(node.EncodedSpan);
     }
 }
Example #2
0
 internal override void AddReference(Node node, AnalysisUnit unit)
 {
     if (!unit.ForEval) {
         if (_references == null) {
             _references = new ReferenceDict();
         }
         _references.GetReferences(unit.DeclaringModule.ProjectEntry).AddReference(new EncodedLocation(unit.Tree, node));
     }
 }
Example #3
0
 internal override void AddReference(Node node, AnalysisUnit unit)
 {
     if (!unit.ForEval) {
         if (_references == null) {
             _references = new ReferenceDict();
         }
         _references.GetReferences(unit.DeclaringModule.ProjectEntry).References.Add(new SimpleSrcLocation(node.Span));
     }
 }