Exemplo n.º 1
0
 bool ReferenceIsInEnclosingScope(Identifier ident, Func<IEnumerable<ArtefactBase>> scopeSelector)
 {
     foreach (var scopeItem in scopeSelector())
     {
         if (ident.ProperName.Equals(scopeItem.ProperName))
         {
             return true;
         }
     }
     return false;
 }
Exemplo n.º 2
0
 bool IsKnownReference(Identifier ident, Func<IEnumerable<ArtefactBase>> registrySelector)
 {
     return registrySelector().Any(ab => ab.ProperName.Equals(ident.ProperName));
 }