58 references to SymbolInfoOptions
Microsoft.CodeAnalysis.CSharp (58)
Compilation\CSharpSemanticModel.cs (43)
139
internal abstract SymbolInfo GetSymbolInfoWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken));
177
internal abstract ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken));
187
internal abstract ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken));
331
internal SymbolInfo GetCrefSymbolInfo(int position, CrefSyntax crefSyntax,
SymbolInfoOptions
options, bool hasParameterList)
365
private static SymbolInfo GetCrefSymbolInfo(OneOrMany<Symbol> symbols,
SymbolInfoOptions
options, bool hasParameterList)
375
if ((options &
SymbolInfoOptions
.ResolveAliases) ==
SymbolInfoOptions
.ResolveAliases)
505
return this.GetSymbolInfoWorker(node,
SymbolInfoOptions
.DefaultOptions, cancellationToken);
572
return this.GetSymbolInfoWorker(expression,
SymbolInfoOptions
.DefaultOptions, cancellationToken);
649
? GetSymbolInfoWorker(constructorInitializer,
SymbolInfoOptions
.DefaultOptions, cancellationToken)
663
? GetSymbolInfoWorker(constructorInitializer,
SymbolInfoOptions
.DefaultOptions, cancellationToken)
677
? GetSymbolInfoWorker(attributeSyntax,
SymbolInfoOptions
.DefaultOptions, cancellationToken)
689
? GetSymbolInfoWorker(crefSyntax,
SymbolInfoOptions
.DefaultOptions, cancellationToken)
726
return crefSymbols.IsDefault ? SymbolInfo.None : GetCrefSymbolInfo(OneOrMany.Create(crefSymbols),
SymbolInfoOptions
.DefaultOptions, hasParameterList: false);
729
var symbolInfo = this.GetSymbolInfoForNode(
SymbolInfoOptions
.DefaultOptions, boundNode, boundNode, boundNodeForSyntacticParent: null, binderOpt: binder);
756
var symbolInfo = this.GetSymbolInfoForNode(
SymbolInfoOptions
.DefaultOptions, boundNode, boundNode, boundNodeForSyntacticParent: null, binderOpt: binder);
831
return memberModel.GetSymbolInfoForNode(
SymbolInfoOptions
.DefaultOptions, expression, expression, boundNodeForSyntacticParent: null, binderOpt: binder);
908
public SymbolInfo GetSpeculativeSymbolInfo(int position, CrefSyntax cref,
SymbolInfoOptions
options =
SymbolInfoOptions
.DefaultOptions)
1089
? this.GetMemberGroupWorker(expression,
SymbolInfoOptions
.DefaultOptions, cancellationToken).GetPublicSymbols()
1103
? this.GetMemberGroupWorker(attribute,
SymbolInfoOptions
.DefaultOptions, cancellationToken).GetPublicSymbols()
1117
? this.GetMemberGroupWorker(initializer,
SymbolInfoOptions
.DefaultOptions, cancellationToken).GetPublicSymbols()
1140
? this.GetIndexerGroupWorker(expression,
SymbolInfoOptions
.DefaultOptions, cancellationToken)
1175
SymbolInfo info = GetSymbolInfoWorker(nameSyntax,
SymbolInfoOptions
.PreferTypeToConstructors |
SymbolInfoOptions
.PreserveAliases, cancellationToken);
1208
var symbolInfo = this.GetSymbolInfoForNode(
SymbolInfoOptions
.PreferTypeToConstructors |
SymbolInfoOptions
.PreserveAliases,
1867
SymbolInfoOptions
options,
1964
if ((options &
SymbolInfoOptions
.ResolveAliases) != 0)
2273
SymbolInfoOptions
options,
2310
internal static SymbolInfo GetSymbolInfoForSymbol(Symbol symbol,
SymbolInfoOptions
options)
2332
if ((options &
SymbolInfoOptions
.ResolveAliases) != 0)
2342
var symbolToReturn = ((options &
SymbolInfoOptions
.ResolveAliases) != 0) ? unwrapped : symbol;
3345
SymbolInfoOptions
options,
3721
if (boundNodeForSyntacticParent != null && (options &
SymbolInfoOptions
.PreferConstructorsToType) != 0)
4503
return GetSymbolInfoWorker(identifierNameSyntax,
SymbolInfoOptions
.DefaultOptions, cancellationToken);
4507
SymbolInfo containingInvocationInfo = GetSymbolInfoWorker(containingInvocation,
SymbolInfoOptions
.PreferConstructorsToType |
SymbolInfoOptions
.ResolveAliases, cancellationToken);
4895
internal static void ValidateSymbolInfoOptions(
SymbolInfoOptions
options)
4897
Debug.Assert(((options &
SymbolInfoOptions
.PreferConstructorsToType) != 0) !=
4898
((options &
SymbolInfoOptions
.PreferTypeToConstructors) != 0), "Options are mutually exclusive");
4899
Debug.Assert(((options &
SymbolInfoOptions
.ResolveAliases) != 0) !=
4900
((options &
SymbolInfoOptions
.PreserveAliases) != 0), "Options are mutually exclusive");
Compilation\MemberSemanticModel.cs (6)
1042
var castInfo = (bound.Cast == null) ? SymbolInfo.None : GetSymbolInfoForNode(
SymbolInfoOptions
.DefaultOptions, bound.Cast, bound.Cast, boundNodeForSyntacticParent: null, binderOpt: null);
1056
return GetSymbolInfoForNode(
SymbolInfoOptions
.DefaultOptions, operation, operation, boundNodeForSyntacticParent: null, binderOpt: null);
1207
internal override SymbolInfo GetSymbolInfoWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken))
1232
internal override ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken))
1244
internal override ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken))
1277
return GetSymbolInfoForNode(
SymbolInfoOptions
.DefaultOptions, boundAdd, boundAdd, null, binderOpt: null);
Compilation\SpeculativeSemanticModelWithMemberModel.cs (3)
450
internal override SymbolInfo GetSymbolInfoWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken))
460
internal override ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken))
465
internal override ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken))
Compilation\SpeculativeSyntaxTreeSemanticModel.cs (2)
111
internal override SymbolInfo GetSymbolInfoWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken))
121
if ((options &
SymbolInfoOptions
.PreserveAliases) != 0)
Compilation\SyntaxTreeSemanticModel.cs (4)
202
internal override SymbolInfo GetSymbolInfoWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken))
284
var symbol = GetSemanticInfoSymbolInNonMemberContext(node, bindVarAsAliasFirst: (options &
SymbolInfoOptions
.PreserveAliases) != 0);
397
internal override ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken))
406
internal override ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node,
SymbolInfoOptions
options, CancellationToken cancellationToken = default(CancellationToken))