57 references to NodeUsage
Microsoft.CodeAnalysis.CSharp (57)
Binder\BinderFactory.BinderFactoryVisitor.cs (52)
114
var key = CreateBinderCacheKey(compilationUnit,
NodeUsage
.MethodBody);
142
NodeUsage
usage;
145
usage =
NodeUsage
.MethodBody;
149
usage =
NodeUsage
.MethodTypeParameters;
155
usage =
NodeUsage
.Normal;
166
resultBinder = VisitTypeDeclarationCore(parentType,
NodeUsage
.NamedTypeBodyOrTypeParameters);
176
if (usage !=
NodeUsage
.Normal && methodDecl.TypeParameterList != null)
182
if (usage ==
NodeUsage
.MethodBody)
205
var
extraInfo = inBodyOrInitializer ?
NodeUsage
.ConstructorBodyOrInitializer :
NodeUsage
.Normal; // extra info for the cache.
243
var key = CreateBinderCacheKey(parent, usage:
NodeUsage
.Normal);
271
var
extraInfo = inBody ?
NodeUsage
.AccessorBody :
NodeUsage
.Normal; // extra info for the cache.
339
var
extraInfo = inBody ?
NodeUsage
.OperatorBody :
NodeUsage
.Normal; // extra info for the cache.
410
var key = CreateBinderCacheKey(parent,
NodeUsage
.AccessorBody);
660
var key = CreateBinderCacheKey(parent, usage:
NodeUsage
.Normal);
695
var key = CreateBinderCacheKey(parent, usage:
NodeUsage
.Normal);
723
NodeUsage
extraInfo =
NodeUsage
.Normal;
731
extraInfo =
NodeUsage
.NamedTypeBodyOrTypeParameters;
735
extraInfo =
NodeUsage
.NamedTypeBodyOrTypeParameters;
739
extraInfo =
NodeUsage
.NamedTypeBodyOrTypeParameters;
743
extraInfo =
NodeUsage
.NamedTypeBaseListOrParameterList;
749
internal Binder VisitTypeDeclarationCore(TypeDeclarationSyntax parent,
NodeUsage
extraInfo)
764
if (extraInfo !=
NodeUsage
.Normal)
768
if (extraInfo ==
NodeUsage
.NamedTypeBaseListOrParameterList)
848
var
extraInfo = inUsing ?
NodeUsage
.NamespaceUsings : (inBody ?
NodeUsage
.NamespaceBody :
NodeUsage
.Normal); // extra info for the cache.
937
var
extraInfo = inUsing
938
? (inScript ?
NodeUsage
.CompilationUnitScriptUsings :
NodeUsage
.CompilationUnitUsings)
939
: (inScript ?
NodeUsage
.CompilationUnitScript :
NodeUsage
.Normal); // extra info for the cache.
1041
internal static BinderCacheKey CreateBinderCacheKey(CSharpSyntaxNode node,
NodeUsage
usage)
1104
return VisitXmlCrefAttributeInternal(containingAttribute,
NodeUsage
.CrefParameterOrReturnType);
1115
return VisitXmlCrefAttributeInternal(containingAttribute,
NodeUsage
.CrefParameterOrReturnType);
1128
var
extraInfo =
NodeUsage
.Normal; // extra info for the cache.
1132
private Binder VisitXmlCrefAttributeInternal(XmlCrefAttributeSyntax parent,
NodeUsage
extraInfo)
1134
Debug.Assert(extraInfo ==
NodeUsage
.Normal || extraInfo ==
NodeUsage
.CrefParameterOrReturnType,
1145
bool inParameterOrReturnType = extraInfo ==
NodeUsage
.CrefParameterOrReturnType;
1166
NodeUsage
extraInfo;
1171
extraInfo =
NodeUsage
.DocumentationCommentParameter;
1174
extraInfo =
NodeUsage
.DocumentationCommentTypeParameter;
1177
extraInfo =
NodeUsage
.DocumentationCommentTypeParameterReference;
Binder\BinderFactory.cs (5)
23
public readonly
NodeUsage
usage;
25
public BinderCacheKey(CSharpSyntaxNode syntaxNode,
NodeUsage
usage)
160
var
extraInfo =
NodeUsage
.ConstructorBodyOrInitializer;
178
Binder resultBinder = visitor.VisitTypeDeclarationCore(typeDecl,
NodeUsage
.NamedTypeBodyOrTypeParameters);