37 references to None
Microsoft.CodeAnalysis.CSharp (37)
Symbols\Source\AttributeLocation.cs (2)
117Debug.Assert(result == AttributeLocation.None ^ SyntaxFacts.IsAttributeTargetSpecifier(kind)); 156return AttributeLocation.None;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (2)
169Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 319Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourceAssemblySymbol.cs (3)
1330arguments.SymbolPart = AttributeLocation.None; 2353return IsInteractive ? AttributeLocation.None : AttributeLocation.Assembly | AttributeLocation.Module; 2366Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceComplexParameterSymbol.cs (2)
744Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 1401Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
234if (arguments.SymbolPart == AttributeLocation.None)
Symbols\Source\SourceEventSymbol.cs (1)
300Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceFieldSymbol.cs (1)
121Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (6)
137get { return AttributeLocation.None; } 334Debug.Assert(arguments.SymbolPart == AttributeLocation.None || arguments.SymbolPart == AttributeLocation.Return); 338if (arguments.SymbolPart == AttributeLocation.None) 513Debug.Assert(arguments.SymbolPart == AttributeLocation.None || arguments.SymbolPart == AttributeLocation.Return); 515if (arguments.SymbolPart == AttributeLocation.None) 1468Debug.Assert(symbolPart == AttributeLocation.None || symbolPart == AttributeLocation.Return);
Symbols\Source\SourceModuleSymbol.cs (2)
496return ContainingAssembly.IsInteractive ? AttributeLocation.None : AttributeLocation.Assembly | AttributeLocation.Module; 557Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceNamedTypeSymbol.cs (3)
824return AttributeLocation.None; 1097Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 1570Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourcePropertySymbolBase.cs (2)
1507Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 1688Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourceTypeParameterSymbol.cs (1)
433Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Symbol_Attributes.cs (7)
258/// <param name="symbolPart">Specific part of the symbol to which the attributes apply, or <see cref="AttributeLocation.None"/> if the attributes apply to the symbol itself.</param> 292/// <param name="symbolPart">Specific part of the symbol to which the attributes apply, or <see cref="AttributeLocation.None"/> if the attributes apply to the symbol itself.</param> 302AttributeLocation symbolPart = AttributeLocation.None, 684bool isOwner = symbolPart == AttributeLocation.None && ReferenceEquals(attributesOwner, attributeTarget); 704if (explicitTarget == AttributeLocation.None) 722if (allowedTargets == AttributeLocation.None) 747if (symbolPart == AttributeLocation.None)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (3)
143arguments.SymbolPart = AttributeLocation.None; 152arguments.SymbolPart = AttributeLocation.None; 160base.PostDecodeWellKnownAttributes(boundAttributes, allAttributeSyntaxNodes, diagnostics, symbolPart is AttributeLocation.Method ? AttributeLocation.None : symbolPart, decodedData);
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
135Debug.Assert(arguments.SymbolPart == AttributeLocation.None);