47 references to Symbols
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder.CapturedParametersFinder.cs (1)
153foreach (var candidate in lookupResult.Symbols)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
269Debug.Assert(lookupResult.Symbols.Any());
Binder\Binder_Crefs.cs (1)
361builder.AddRange(result.Symbols);
Binder\Binder_Expressions.cs (16)
1482Debug.Assert(!result || lookupResult.Symbols.Count > 0); 2409var symbol = (LabelSymbol)result.Symbols.First(); 7740return BindMemberAccessBadResult(node, rightName, boundLeft, lookupResult.Error, lookupResult.Symbols.ToImmutable(), lookupResult.Kind); 7768ArrayBuilder<Symbol> symbols = lookupResult.Symbols; 7776return new BoundBadExpression(node, LookupResultKind.Ambiguous, lookupResult.Symbols.AsImmutable(), ImmutableArray.Create(boundLeft), CreateErrorType(rightName), hasErrors: true); 7979lookupResult.Symbols.All(s => s.Kind == SymbolKind.Method) ? lookupResult.Symbols.SelectAsArray(s_toMethodSymbolFunc) : ImmutableArray<MethodSymbol>.Empty, 7993return BindMemberAccessBadResult(node, rightName, boundLeft, lookupResult.Error, lookupResult.Symbols.ToImmutable(), lookupResult.Kind); 8233Debug.Assert(lookupResult.Symbols.Any()); 8482Debug.Assert(lookupResult.Symbols.Any()); 8855Debug.Assert(!result.Symbols.Any(s => s.IsIndexer())); 8862foreach (var symbol in result.Symbols) 9613foreach (Symbol symbol in lookupResult.Symbols) 10030foreach (var candidate in lookupResult.Symbols) 10085foreach (var candidate in lookupResult.Symbols) 10195lookupResult.Symbols[0] is PropertySymbol property &&
Binder\Binder_Lookup.cs (14)
302Symbol existingDefinition = submissionSymbols.Symbols.First(); 336Symbol firstSymbol = submissionSymbols.Symbols.First(); 349if (submissionSymbols.Symbols.Count > 0 && submissionSymbols.Symbols.First().Kind != lookingForOverloadsOfKind.Value) 358Debug.Assert(result.Symbols.All(IsMethodOrIndexer)); 364if (result.Symbols.Count == 0) 590var symbols = result.Symbols; 828bool tmpHidesMethodOrIndexers = tmp.IsMultiViable && !IsMethodOrIndexer(tmp.Symbols[0]); 831if (result.IsMultiViable && (tmpHidesMethodOrIndexers || !IsMethodOrIndexer(result.Symbols[0]))) 899foreach (var sym in result.Symbols) 924foreach (var sym in tmp.Symbols) 938foreach (var sym in result.Symbols) 1231var hidingSymbols = resultHiding.Symbols; 1233var hiddenSymbols = resultHidden.Symbols;
Binder\Binder_Statements.cs (2)
480var symbol = result.Symbols.Count > 0 && result.IsMultiViable ? 481(LabelSymbol)result.Symbols.First() :
Binder\Binder_Symbols.cs (4)
956foreach (var s in result.Symbols) 977foreach (var s in result.Symbols) 1526foreach (var symbol in lookupResult.Symbols) 1927var symbols = result.Symbols;
Binder\Binder_XmlNameAttribute.cs (1)
43ArrayBuilder<Symbol> lookupSymbols = lookupResult.Symbols;
Binder\ForEachLoopBinder.cs (3)
1380foreach (Symbol member in lookupResult.Symbols) 1860if (lookupResult.Symbols.Any()) 1864ReportEnumerableWarning(collectionSyntax, diagnostics, patternType, lookupResult.Symbols.First());
Compilation\CSharpSemanticModel.cs (4)
1668foreach (MethodSymbol extensionMethod in lookupResult.Symbols) 1748if (lookupResult.Symbols.Any(t => t.Kind == SymbolKind.NamedType || t.Kind == SymbolKind.Namespace || t.Kind == SymbolKind.ErrorType)) 1760foreach (var symbol in lookupResult.Symbols) 1768foreach (var symbol in lookupResult.Symbols)