57 references to NodeUsage
Microsoft.CodeAnalysis.CSharp (57)
Binder\BinderFactory.BinderFactoryVisitor.cs (52)
114var key = CreateBinderCacheKey(compilationUnit, NodeUsage.MethodBody); 142NodeUsage usage; 145usage = NodeUsage.MethodBody; 149usage = NodeUsage.MethodTypeParameters; 155usage = NodeUsage.Normal; 166resultBinder = VisitTypeDeclarationCore(parentType, NodeUsage.NamedTypeBodyOrTypeParameters); 176if (usage != NodeUsage.Normal && methodDecl.TypeParameterList != null) 182if (usage == NodeUsage.MethodBody) 205var extraInfo = inBodyOrInitializer ? NodeUsage.ConstructorBodyOrInitializer : NodeUsage.Normal; // extra info for the cache. 243var key = CreateBinderCacheKey(parent, usage: NodeUsage.Normal); 271var extraInfo = inBody ? NodeUsage.AccessorBody : NodeUsage.Normal; // extra info for the cache. 339var extraInfo = inBody ? NodeUsage.OperatorBody : NodeUsage.Normal; // extra info for the cache. 410var key = CreateBinderCacheKey(parent, NodeUsage.AccessorBody); 669var key = CreateBinderCacheKey(parent, usage: NodeUsage.Normal); 704var key = CreateBinderCacheKey(parent, usage: NodeUsage.Normal); 732NodeUsage extraInfo = NodeUsage.Normal; 740extraInfo = NodeUsage.NamedTypeBodyOrTypeParameters; 744extraInfo = NodeUsage.NamedTypeBodyOrTypeParameters; 748extraInfo = NodeUsage.NamedTypeBodyOrTypeParameters; 752extraInfo = NodeUsage.NamedTypeBaseListOrParameterList; 758internal Binder VisitTypeDeclarationCore(TypeDeclarationSyntax parent, NodeUsage extraInfo) 773if (extraInfo != NodeUsage.Normal) 777if (extraInfo == NodeUsage.NamedTypeBaseListOrParameterList) 857var extraInfo = inUsing ? NodeUsage.NamespaceUsings : (inBody ? NodeUsage.NamespaceBody : NodeUsage.Normal); // extra info for the cache. 946var extraInfo = inUsing 947? (inScript ? NodeUsage.CompilationUnitScriptUsings : NodeUsage.CompilationUnitUsings) 948: (inScript ? NodeUsage.CompilationUnitScript : NodeUsage.Normal); // extra info for the cache. 1050internal static BinderCacheKey CreateBinderCacheKey(CSharpSyntaxNode node, NodeUsage usage) 1113return VisitXmlCrefAttributeInternal(containingAttribute, NodeUsage.CrefParameterOrReturnType); 1124return VisitXmlCrefAttributeInternal(containingAttribute, NodeUsage.CrefParameterOrReturnType); 1137var extraInfo = NodeUsage.Normal; // extra info for the cache. 1141private Binder VisitXmlCrefAttributeInternal(XmlCrefAttributeSyntax parent, NodeUsage extraInfo) 1143Debug.Assert(extraInfo == NodeUsage.Normal || extraInfo == NodeUsage.CrefParameterOrReturnType, 1154bool inParameterOrReturnType = extraInfo == NodeUsage.CrefParameterOrReturnType; 1175NodeUsage extraInfo; 1180extraInfo = NodeUsage.DocumentationCommentParameter; 1183extraInfo = NodeUsage.DocumentationCommentTypeParameter; 1186extraInfo = NodeUsage.DocumentationCommentTypeParameterReference;
Binder\BinderFactory.cs (5)
23public readonly NodeUsage usage; 25public BinderCacheKey(CSharpSyntaxNode syntaxNode, NodeUsage usage) 160var extraInfo = NodeUsage.ConstructorBodyOrInitializer; 178Binder resultBinder = visitor.VisitTypeDeclarationCore(typeDecl, NodeUsage.NamedTypeBodyOrTypeParameters);