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)
170Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 320Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourceAssemblySymbol.cs (3)
1331arguments.SymbolPart = AttributeLocation.None; 2354return IsInteractive ? AttributeLocation.None : AttributeLocation.Assembly | AttributeLocation.Module; 2367Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceComplexParameterSymbol.cs (2)
735Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 1392Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
242if (arguments.SymbolPart == AttributeLocation.None)
Symbols\Source\SourceEventSymbol.cs (1)
346Debug.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) 1465Debug.Assert(symbolPart == AttributeLocation.None || symbolPart == AttributeLocation.Return);
Symbols\Source\SourceModuleSymbol.cs (2)
505return ContainingAssembly.IsInteractive ? AttributeLocation.None : AttributeLocation.Assembly | AttributeLocation.Module; 566Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceNamedTypeSymbol.cs (3)
829return AttributeLocation.None; 1102Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 1595Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourcePropertySymbolBase.cs (2)
1532Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 1713Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourceTypeParameterSymbol.cs (1)
434Debug.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)
144arguments.SymbolPart = AttributeLocation.None; 153arguments.SymbolPart = AttributeLocation.None; 161base.PostDecodeWellKnownAttributes(boundAttributes, allAttributeSyntaxNodes, diagnostics, symbolPart is AttributeLocation.Method ? AttributeLocation.None : symbolPart, decodedData);
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
243Debug.Assert(arguments.SymbolPart == AttributeLocation.None);