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)
1331arguments.SymbolPart = AttributeLocation.None; 2354return IsInteractive ? AttributeLocation.None : AttributeLocation.Assembly | AttributeLocation.Module; 2367Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceComplexParameterSymbol.cs (2)
734Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 1391Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
241if (arguments.SymbolPart == AttributeLocation.None)
Symbols\Source\SourceEventSymbol.cs (1)
345Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceFieldSymbol.cs (1)
121Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (6)
138get { return AttributeLocation.None; } 335Debug.Assert(arguments.SymbolPart == AttributeLocation.None || arguments.SymbolPart == AttributeLocation.Return); 339if (arguments.SymbolPart == AttributeLocation.None) 514Debug.Assert(arguments.SymbolPart == AttributeLocation.None || arguments.SymbolPart == AttributeLocation.Return); 516if (arguments.SymbolPart == AttributeLocation.None) 1469Debug.Assert(symbolPart == AttributeLocation.None || symbolPart == AttributeLocation.Return);
Symbols\Source\SourceModuleSymbol.cs (2)
504return ContainingAssembly.IsInteractive ? AttributeLocation.None : AttributeLocation.Assembly | AttributeLocation.Module; 565Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Source\SourceNamedTypeSymbol.cs (3)
828return AttributeLocation.None; 1101Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 1589Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourcePropertySymbolBase.cs (2)
1526Debug.Assert(arguments.SymbolPart == AttributeLocation.None); 1707Debug.Assert(symbolPart == AttributeLocation.None);
Symbols\Source\SourceTypeParameterSymbol.cs (1)
433Debug.Assert(arguments.SymbolPart == AttributeLocation.None);
Symbols\Symbol_Attributes.cs (7)
257/// <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> 291/// <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> 301AttributeLocation symbolPart = AttributeLocation.None, 683bool isOwner = symbolPart == AttributeLocation.None && ReferenceEquals(attributesOwner, attributeTarget); 703if (explicitTarget == AttributeLocation.None) 721if (allowedTargets == AttributeLocation.None) 746if (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)
242Debug.Assert(arguments.SymbolPart == AttributeLocation.None);