57 references to NodeUsage
Microsoft.CodeAnalysis.CSharp (57)
Binder\BinderFactory.BinderFactoryVisitor.cs (52)
110
var key = CreateBinderCacheKey(compilationUnit,
NodeUsage
.MethodBody);
138
NodeUsage
usage;
141
usage =
NodeUsage
.MethodBody;
145
usage =
NodeUsage
.MethodTypeParameters;
151
usage =
NodeUsage
.Normal;
162
resultBinder = VisitTypeDeclarationCore(parentType,
NodeUsage
.NamedTypeBodyOrTypeParameters);
171
if (usage !=
NodeUsage
.Normal && methodDecl.TypeParameterList != null)
177
if (usage ==
NodeUsage
.MethodBody)
199
var
extraInfo = inBodyOrInitializer ?
NodeUsage
.ConstructorBodyOrInitializer :
NodeUsage
.Normal; // extra info for the cache.
237
var key = CreateBinderCacheKey(parent, usage:
NodeUsage
.Normal);
265
var
extraInfo = inBody ?
NodeUsage
.AccessorBody :
NodeUsage
.Normal; // extra info for the cache.
328
var
extraInfo = inBody ?
NodeUsage
.OperatorBody :
NodeUsage
.Normal; // extra info for the cache.
397
var key = CreateBinderCacheKey(parent,
NodeUsage
.AccessorBody);
645
var key = CreateBinderCacheKey(parent, usage:
NodeUsage
.Normal);
680
var key = CreateBinderCacheKey(parent, usage:
NodeUsage
.Normal);
708
NodeUsage
extraInfo =
NodeUsage
.Normal;
716
extraInfo =
NodeUsage
.NamedTypeBodyOrTypeParameters;
720
extraInfo =
NodeUsage
.NamedTypeBodyOrTypeParameters;
724
extraInfo =
NodeUsage
.NamedTypeBodyOrTypeParameters;
728
extraInfo =
NodeUsage
.NamedTypeBaseListOrParameterList;
734
internal Binder VisitTypeDeclarationCore(TypeDeclarationSyntax parent,
NodeUsage
extraInfo)
749
if (extraInfo !=
NodeUsage
.Normal)
753
if (extraInfo ==
NodeUsage
.NamedTypeBaseListOrParameterList)
833
var
extraInfo = inUsing ?
NodeUsage
.NamespaceUsings : (inBody ?
NodeUsage
.NamespaceBody :
NodeUsage
.Normal); // extra info for the cache.
922
var
extraInfo = inUsing
923
? (inScript ?
NodeUsage
.CompilationUnitScriptUsings :
NodeUsage
.CompilationUnitUsings)
924
: (inScript ?
NodeUsage
.CompilationUnitScript :
NodeUsage
.Normal); // extra info for the cache.
1026
internal static BinderCacheKey CreateBinderCacheKey(CSharpSyntaxNode node,
NodeUsage
usage)
1089
return VisitXmlCrefAttributeInternal(containingAttribute,
NodeUsage
.CrefParameterOrReturnType);
1100
return VisitXmlCrefAttributeInternal(containingAttribute,
NodeUsage
.CrefParameterOrReturnType);
1113
var
extraInfo =
NodeUsage
.Normal; // extra info for the cache.
1117
private Binder VisitXmlCrefAttributeInternal(XmlCrefAttributeSyntax parent,
NodeUsage
extraInfo)
1119
Debug.Assert(extraInfo ==
NodeUsage
.Normal || extraInfo ==
NodeUsage
.CrefParameterOrReturnType,
1130
bool inParameterOrReturnType = extraInfo ==
NodeUsage
.CrefParameterOrReturnType;
1151
NodeUsage
extraInfo;
1156
extraInfo =
NodeUsage
.DocumentationCommentParameter;
1159
extraInfo =
NodeUsage
.DocumentationCommentTypeParameter;
1162
extraInfo =
NodeUsage
.DocumentationCommentTypeParameterReference;
Binder\BinderFactory.cs (5)
23
public readonly
NodeUsage
usage;
25
public BinderCacheKey(CSharpSyntaxNode syntaxNode,
NodeUsage
usage)
145
var
extraInfo =
NodeUsage
.ConstructorBodyOrInitializer;
164
Binder resultBinder = visitor.VisitTypeDeclarationCore(typeDecl,
NodeUsage
.NamedTypeBodyOrTypeParameters);