10 instantiations of SingleLookupResult
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Lookup.cs (1)
952result.MergeEqual(new SingleLookupResult(LookupResultKind.Viable, sym, null));
Binder\LookupResult.cs (9)
157return new SingleLookupResult(LookupResultKind.Viable, symbol, null); 162return new SingleLookupResult(LookupResultKind.WrongArity, symbol, error); 167return new SingleLookupResult(LookupResultKind.Empty, null, null); 172return new SingleLookupResult(LookupResultKind.NotReferencable, symbol, error); 177return new SingleLookupResult(LookupResultKind.StaticInstanceMismatch, symbol, error); 182return new SingleLookupResult(LookupResultKind.Inaccessible, symbol, error); 193return new SingleLookupResult(LookupResultKind.NotLabel, symbol, error); 198return new SingleLookupResult(LookupResultKind.NotATypeOrNamespace, symbol, error); 210return new SingleLookupResult(LookupResultKind.NotAnAttributeType, symbol, error);
23 references to SingleLookupResult
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Lookup.cs (7)
416var res = originalBinder.CheckViability(alias.Alias, arity, options, null, diagnose, ref useSiteInfo, basesBeingResolved); 432var res = originalBinder.CheckViability(a.Alias, arity, options, null, diagnose, ref useSiteInfo, basesBeingResolved); 449SingleLookupResult resultOfThisMember = originalBinder.CheckViability(member, arity, options, null, diagnose, ref useSiteInfo); 468SingleLookupResult resultOfThisMember = this.CheckViability(method, arity, options, null, diagnose: true, useSiteInfo: ref useSiteInfo); 684private SingleLookupResult GenerateNonViableAttributeTypeResult(Symbol symbol, DiagnosticInfo diagInfo, bool diagnose) 772SingleLookupResult resultOfThisMember = originalBinder.CheckViability(member, arity, options, accessThroughType, diagnose, ref useSiteInfo, basesBeingResolved); 1385internal SingleLookupResult CheckViability(Symbol symbol, int arity, LookupOptions options, TypeSymbol accessThroughType, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null)
Binder\LookupResult.cs (14)
17internal delegate SingleLookupResult LookupFilter(Symbol sym); 155internal static SingleLookupResult Good(Symbol symbol) 160internal static SingleLookupResult WrongArity(Symbol symbol, DiagnosticInfo error) 165internal static SingleLookupResult Empty() 170internal static SingleLookupResult NotReferencable(Symbol symbol, DiagnosticInfo error) 175internal static SingleLookupResult StaticInstanceMismatch(Symbol symbol, DiagnosticInfo error) 180internal static SingleLookupResult Inaccessible(Symbol symbol, DiagnosticInfo error) 185internal static SingleLookupResult NotInvocable(Symbol unwrappedSymbol, Symbol symbol, bool diagnose) 191internal static SingleLookupResult NotLabel(Symbol symbol, DiagnosticInfo error) 196internal static SingleLookupResult NotTypeOrNamespace(Symbol symbol, DiagnosticInfo error) 201internal static SingleLookupResult NotTypeOrNamespace(Symbol unwrappedSymbol, Symbol symbol, bool diagnose) 208internal static SingleLookupResult NotAnAttributeType(Symbol symbol, DiagnosticInfo error) 216internal void SetFrom(SingleLookupResult other) 279internal void MergeEqual(SingleLookupResult result)
Binder\WithUsingNamespacesAndTypesBinder.cs (1)
152var res = originalBinder.CheckViability(symbol, arity, options, null, diagnose, ref useSiteInfo, basesBeingResolved);
Compilation\CSharpSemanticModel.cs (1)
4704SingleLookupResult singleResult,