public void ProcessBeforeInterior(ITreeNode element)
 {
     if (element is IReferenceName || element is IReferenceExpression)
     {
         _referenced.AddRange(element.GetFirstClassReferences().OfType<IReference>());
     }
 }
 public void ProcessAfterInterior(ITreeNode element)
 {
     foreach (IQualifiableReferenceBase qualifiableReference in
         element.GetFirstClassReferences().OfType<IQualifiableReferenceBase>())
     {
         if ((qualifiableReference).GetDocumentRange().ContainedIn(_myRange))
         {
             _myReferences.Add(qualifiableReference);
         }
     }
 }
 public void ProcessAfterInterior(ITreeNode element)
 {
     //if (this.myRegionDetector.InGeneratedCode)
     //    return;
     foreach (IQualifiableReference qualifiableReference in
         element.GetFirstClassReferences().OfType<IQualifiableReference>())
     {
         if ((qualifiableReference).GetDocumentRange().ContainedIn(myRange))
         {
             myReferences.Add(qualifiableReference);
         }
     }
 }