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);
669
var key = CreateBinderCacheKey(parent, usage:
NodeUsage
.Normal);
704
var key = CreateBinderCacheKey(parent, usage:
NodeUsage
.Normal);
732
NodeUsage
extraInfo =
NodeUsage
.Normal;
740
extraInfo =
NodeUsage
.NamedTypeBodyOrTypeParameters;
744
extraInfo =
NodeUsage
.NamedTypeBodyOrTypeParameters;
748
extraInfo =
NodeUsage
.NamedTypeBodyOrTypeParameters;
752
extraInfo =
NodeUsage
.NamedTypeBaseListOrParameterList;
758
internal Binder VisitTypeDeclarationCore(TypeDeclarationSyntax parent,
NodeUsage
extraInfo)
773
if (extraInfo !=
NodeUsage
.Normal)
777
if (extraInfo ==
NodeUsage
.NamedTypeBaseListOrParameterList)
857
var
extraInfo = inUsing ?
NodeUsage
.NamespaceUsings : (inBody ?
NodeUsage
.NamespaceBody :
NodeUsage
.Normal); // extra info for the cache.
946
var
extraInfo = inUsing
947
? (inScript ?
NodeUsage
.CompilationUnitScriptUsings :
NodeUsage
.CompilationUnitUsings)
948
: (inScript ?
NodeUsage
.CompilationUnitScript :
NodeUsage
.Normal); // extra info for the cache.
1050
internal static BinderCacheKey CreateBinderCacheKey(CSharpSyntaxNode node,
NodeUsage
usage)
1113
return VisitXmlCrefAttributeInternal(containingAttribute,
NodeUsage
.CrefParameterOrReturnType);
1124
return VisitXmlCrefAttributeInternal(containingAttribute,
NodeUsage
.CrefParameterOrReturnType);
1137
var
extraInfo =
NodeUsage
.Normal; // extra info for the cache.
1141
private Binder VisitXmlCrefAttributeInternal(XmlCrefAttributeSyntax parent,
NodeUsage
extraInfo)
1143
Debug.Assert(extraInfo ==
NodeUsage
.Normal || extraInfo ==
NodeUsage
.CrefParameterOrReturnType,
1154
bool inParameterOrReturnType = extraInfo ==
NodeUsage
.CrefParameterOrReturnType;
1175
NodeUsage
extraInfo;
1180
extraInfo =
NodeUsage
.DocumentationCommentParameter;
1183
extraInfo =
NodeUsage
.DocumentationCommentTypeParameter;
1186
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);