37 references to None
Microsoft.CodeAnalysis.CSharp (37)
Symbols\Source\AttributeLocation.cs (2)
117
Debug.Assert(result == AttributeLocation.
None
^ SyntaxFacts.IsAttributeTargetSpecifier(kind));
156
return AttributeLocation.
None
;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (2)
170
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
320
Debug.Assert(symbolPart == AttributeLocation.
None
);
Symbols\Source\SourceAssemblySymbol.cs (3)
1331
arguments.SymbolPart = AttributeLocation.
None
;
2354
return IsInteractive ? AttributeLocation.
None
: AttributeLocation.Assembly | AttributeLocation.Module;
2367
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
Symbols\Source\SourceComplexParameterSymbol.cs (2)
735
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
1392
Debug.Assert(symbolPart == AttributeLocation.
None
);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
242
if (arguments.SymbolPart == AttributeLocation.
None
)
Symbols\Source\SourceEventSymbol.cs (1)
346
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
Symbols\Source\SourceFieldSymbol.cs (1)
121
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (6)
137
get { return AttributeLocation.
None
; }
334
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
|| arguments.SymbolPart == AttributeLocation.Return);
338
if (arguments.SymbolPart == AttributeLocation.
None
)
513
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
|| arguments.SymbolPart == AttributeLocation.Return);
515
if (arguments.SymbolPart == AttributeLocation.
None
)
1465
Debug.Assert(symbolPart == AttributeLocation.
None
|| symbolPart == AttributeLocation.Return);
Symbols\Source\SourceModuleSymbol.cs (2)
505
return ContainingAssembly.IsInteractive ? AttributeLocation.
None
: AttributeLocation.Assembly | AttributeLocation.Module;
566
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
Symbols\Source\SourceNamedTypeSymbol.cs (3)
829
return AttributeLocation.
None
;
1102
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
1595
Debug.Assert(symbolPart == AttributeLocation.
None
);
Symbols\Source\SourcePropertySymbolBase.cs (2)
1532
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
1713
Debug.Assert(symbolPart == AttributeLocation.
None
);
Symbols\Source\SourceTypeParameterSymbol.cs (1)
434
Debug.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>
302
AttributeLocation symbolPart = AttributeLocation.
None
,
684
bool isOwner = symbolPart == AttributeLocation.
None
&& ReferenceEquals(attributesOwner, attributeTarget);
704
if (explicitTarget == AttributeLocation.
None
)
722
if (allowedTargets == AttributeLocation.
None
)
747
if (symbolPart == AttributeLocation.
None
)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (3)
144
arguments.SymbolPart = AttributeLocation.
None
;
153
arguments.SymbolPart = AttributeLocation.
None
;
161
base.PostDecodeWellKnownAttributes(boundAttributes, allAttributeSyntaxNodes, diagnostics, symbolPart is AttributeLocation.Method ? AttributeLocation.
None
: symbolPart, decodedData);
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
243
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);