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