61 references to ContainingNodes
Microsoft.CodeAnalysis.Workspaces (61)
FindSymbols\SyntaxTree\SyntaxTreeIndex.ContextInfo.cs (61)
17
private readonly
ContainingNodes
_containingNodes;
63
private ContextInfo(int predefinedTypes, int predefinedOperators,
ContainingNodes
containingNodes)
70
private static
ContainingNodes
ConvertToContainingNodeFlag(
90
var
containingNodes =
ContainingNodes
.None;
92
containingNodes |= containsForEachStatement ?
ContainingNodes
.ContainsForEachStatement : 0;
93
containingNodes |= containsLockStatement ?
ContainingNodes
.ContainsLockStatement : 0;
94
containingNodes |= containsUsingStatement ?
ContainingNodes
.ContainsUsingStatement : 0;
95
containingNodes |= containsQueryExpression ?
ContainingNodes
.ContainsQueryExpression : 0;
96
containingNodes |= containsThisConstructorInitializer ?
ContainingNodes
.ContainsThisConstructorInitializer : 0;
97
containingNodes |= containsBaseConstructorInitializer ?
ContainingNodes
.ContainsBaseConstructorInitializer : 0;
98
containingNodes |= containsExplicitOrImplicitElementAccessExpression ?
ContainingNodes
.ContainsExplicitOrImplicitElementAccessExpression : 0;
99
containingNodes |= containsIndexerMemberCref ?
ContainingNodes
.ContainsIndexerMemberCref : 0;
100
containingNodes |= containsDeconstruction ?
ContainingNodes
.ContainsDeconstruction : 0;
101
containingNodes |= containsAwait ?
ContainingNodes
.ContainsAwait : 0;
102
containingNodes |= containsTupleExpressionOrTupleType ?
ContainingNodes
.ContainsTupleExpressionOrTupleType : 0;
103
containingNodes |= containsImplicitObjectCreation ?
ContainingNodes
.ContainsImplicitObjectCreation : 0;
104
containingNodes |= containsGlobalSuppressMessageAttribute ?
ContainingNodes
.ContainsGlobalSuppressMessageAttribute : 0;
105
containingNodes |= containsConversion ?
ContainingNodes
.ContainsConversion : 0;
106
containingNodes |= containsGlobalKeyword ?
ContainingNodes
.ContainsGlobalKeyword : 0;
107
containingNodes |= containsCollectionInitializer ?
ContainingNodes
.ContainsCollectionInitializer : 0;
108
containingNodes |= containsAttribute ?
ContainingNodes
.ContainsAttribute : 0;
109
containingNodes |= containsDirective ?
ContainingNodes
.ContainsDirective : 0;
121
=> (_containingNodes &
ContainingNodes
.ContainsForEachStatement) ==
ContainingNodes
.ContainsForEachStatement;
124
=> (_containingNodes &
ContainingNodes
.ContainsDeconstruction) ==
ContainingNodes
.ContainsDeconstruction;
127
=> (_containingNodes &
ContainingNodes
.ContainsAwait) ==
ContainingNodes
.ContainsAwait;
130
=> (_containingNodes &
ContainingNodes
.ContainsImplicitObjectCreation) ==
ContainingNodes
.ContainsImplicitObjectCreation;
133
=> (_containingNodes &
ContainingNodes
.ContainsLockStatement) ==
ContainingNodes
.ContainsLockStatement;
136
=> (_containingNodes &
ContainingNodes
.ContainsUsingStatement) ==
ContainingNodes
.ContainsUsingStatement;
139
=> (_containingNodes &
ContainingNodes
.ContainsQueryExpression) ==
ContainingNodes
.ContainsQueryExpression;
142
=> (_containingNodes &
ContainingNodes
.ContainsThisConstructorInitializer) ==
ContainingNodes
.ContainsThisConstructorInitializer;
145
=> (_containingNodes &
ContainingNodes
.ContainsBaseConstructorInitializer) ==
ContainingNodes
.ContainsBaseConstructorInitializer;
148
=> (_containingNodes &
ContainingNodes
.ContainsExplicitOrImplicitElementAccessExpression) ==
ContainingNodes
.ContainsExplicitOrImplicitElementAccessExpression;
151
=> (_containingNodes &
ContainingNodes
.ContainsIndexerMemberCref) ==
ContainingNodes
.ContainsIndexerMemberCref;
154
=> (_containingNodes &
ContainingNodes
.ContainsTupleExpressionOrTupleType) ==
ContainingNodes
.ContainsTupleExpressionOrTupleType;
157
=> (_containingNodes &
ContainingNodes
.ContainsGlobalKeyword) ==
ContainingNodes
.ContainsGlobalKeyword;
160
=> (_containingNodes &
ContainingNodes
.ContainsGlobalSuppressMessageAttribute) ==
ContainingNodes
.ContainsGlobalSuppressMessageAttribute;
163
=> (_containingNodes &
ContainingNodes
.ContainsConversion) ==
ContainingNodes
.ContainsConversion;
166
=> (_containingNodes &
ContainingNodes
.ContainsCollectionInitializer) ==
ContainingNodes
.ContainsCollectionInitializer;
169
=> (_containingNodes &
ContainingNodes
.ContainsAttribute) ==
ContainingNodes
.ContainsAttribute;
172
=> (_containingNodes &
ContainingNodes
.ContainsDirective) ==
ContainingNodes
.ContainsDirective;
187
var
containingNodes = (
ContainingNodes
)reader.ReadInt32();