58 references to ContainingNodes
Microsoft.CodeAnalysis.Workspaces (58)
FindSymbols\SyntaxTree\SyntaxTreeIndex.ContextInfo.cs (58)
17
private readonly
ContainingNodes
_containingNodes;
61
private ContextInfo(int predefinedTypes, int predefinedOperators,
ContainingNodes
containingNodes)
68
private static
ContainingNodes
ConvertToContainingNodeFlag(
87
var
containingNodes =
ContainingNodes
.None;
89
containingNodes |= containsForEachStatement ?
ContainingNodes
.ContainsForEachStatement : 0;
90
containingNodes |= containsLockStatement ?
ContainingNodes
.ContainsLockStatement : 0;
91
containingNodes |= containsUsingStatement ?
ContainingNodes
.ContainsUsingStatement : 0;
92
containingNodes |= containsQueryExpression ?
ContainingNodes
.ContainsQueryExpression : 0;
93
containingNodes |= containsThisConstructorInitializer ?
ContainingNodes
.ContainsThisConstructorInitializer : 0;
94
containingNodes |= containsBaseConstructorInitializer ?
ContainingNodes
.ContainsBaseConstructorInitializer : 0;
95
containingNodes |= containsExplicitOrImplicitElementAccessExpression ?
ContainingNodes
.ContainsExplicitOrImplicitElementAccessExpression : 0;
96
containingNodes |= containsIndexerMemberCref ?
ContainingNodes
.ContainsIndexerMemberCref : 0;
97
containingNodes |= containsDeconstruction ?
ContainingNodes
.ContainsDeconstruction : 0;
98
containingNodes |= containsAwait ?
ContainingNodes
.ContainsAwait : 0;
99
containingNodes |= containsTupleExpressionOrTupleType ?
ContainingNodes
.ContainsTupleExpressionOrTupleType : 0;
100
containingNodes |= containsImplicitObjectCreation ?
ContainingNodes
.ContainsImplicitObjectCreation : 0;
101
containingNodes |= containsGlobalSuppressMessageAttribute ?
ContainingNodes
.ContainsGlobalSuppressMessageAttribute : 0;
102
containingNodes |= containsConversion ?
ContainingNodes
.ContainsConversion : 0;
103
containingNodes |= containsGlobalKeyword ?
ContainingNodes
.ContainsGlobalKeyword : 0;
104
containingNodes |= containsCollectionInitializer ?
ContainingNodes
.ContainsCollectionInitializer : 0;
105
containingNodes |= containsAttribute ?
ContainingNodes
.ContainsAttribute : 0;
117
=> (_containingNodes &
ContainingNodes
.ContainsForEachStatement) ==
ContainingNodes
.ContainsForEachStatement;
120
=> (_containingNodes &
ContainingNodes
.ContainsDeconstruction) ==
ContainingNodes
.ContainsDeconstruction;
123
=> (_containingNodes &
ContainingNodes
.ContainsAwait) ==
ContainingNodes
.ContainsAwait;
126
=> (_containingNodes &
ContainingNodes
.ContainsImplicitObjectCreation) ==
ContainingNodes
.ContainsImplicitObjectCreation;
129
=> (_containingNodes &
ContainingNodes
.ContainsLockStatement) ==
ContainingNodes
.ContainsLockStatement;
132
=> (_containingNodes &
ContainingNodes
.ContainsUsingStatement) ==
ContainingNodes
.ContainsUsingStatement;
135
=> (_containingNodes &
ContainingNodes
.ContainsQueryExpression) ==
ContainingNodes
.ContainsQueryExpression;
138
=> (_containingNodes &
ContainingNodes
.ContainsThisConstructorInitializer) ==
ContainingNodes
.ContainsThisConstructorInitializer;
141
=> (_containingNodes &
ContainingNodes
.ContainsBaseConstructorInitializer) ==
ContainingNodes
.ContainsBaseConstructorInitializer;
144
=> (_containingNodes &
ContainingNodes
.ContainsExplicitOrImplicitElementAccessExpression) ==
ContainingNodes
.ContainsExplicitOrImplicitElementAccessExpression;
147
=> (_containingNodes &
ContainingNodes
.ContainsIndexerMemberCref) ==
ContainingNodes
.ContainsIndexerMemberCref;
150
=> (_containingNodes &
ContainingNodes
.ContainsTupleExpressionOrTupleType) ==
ContainingNodes
.ContainsTupleExpressionOrTupleType;
153
=> (_containingNodes &
ContainingNodes
.ContainsGlobalKeyword) ==
ContainingNodes
.ContainsGlobalKeyword;
156
=> (_containingNodes &
ContainingNodes
.ContainsGlobalSuppressMessageAttribute) ==
ContainingNodes
.ContainsGlobalSuppressMessageAttribute;
159
=> (_containingNodes &
ContainingNodes
.ContainsConversion) ==
ContainingNodes
.ContainsConversion;
162
=> (_containingNodes &
ContainingNodes
.ContainsCollectionInitializer) ==
ContainingNodes
.ContainsCollectionInitializer;
165
=> (_containingNodes &
ContainingNodes
.ContainsAttribute) ==
ContainingNodes
.ContainsAttribute;
180
var
containingNodes = (
ContainingNodes
)reader.ReadInt32();