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)
169
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
319
Debug.Assert(symbolPart == AttributeLocation.
None
);
Symbols\Source\SourceAssemblySymbol.cs (3)
1330
arguments.SymbolPart = AttributeLocation.
None
;
2353
return IsInteractive ? AttributeLocation.
None
: AttributeLocation.Assembly | AttributeLocation.Module;
2366
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
Symbols\Source\SourceComplexParameterSymbol.cs (2)
743
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
1395
Debug.Assert(symbolPart == AttributeLocation.
None
);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
234
if (arguments.SymbolPart == AttributeLocation.
None
)
Symbols\Source\SourceEventSymbol.cs (1)
300
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
)
1462
Debug.Assert(symbolPart == AttributeLocation.
None
|| symbolPart == AttributeLocation.Return);
Symbols\Source\SourceModuleSymbol.cs (2)
496
return ContainingAssembly.IsInteractive ? AttributeLocation.
None
: AttributeLocation.Assembly | AttributeLocation.Module;
557
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
Symbols\Source\SourceNamedTypeSymbol.cs (3)
824
return AttributeLocation.
None
;
1097
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
1570
Debug.Assert(symbolPart == AttributeLocation.
None
);
Symbols\Source\SourcePropertySymbolBase.cs (2)
1507
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);
1683
Debug.Assert(symbolPart == AttributeLocation.
None
);
Symbols\Source\SourceTypeParameterSymbol.cs (1)
433
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)
143
arguments.SymbolPart = AttributeLocation.
None
;
152
arguments.SymbolPart = AttributeLocation.
None
;
160
base.PostDecodeWellKnownAttributes(boundAttributes, allAttributeSyntaxNodes, diagnostics, symbolPart is AttributeLocation.Method ? AttributeLocation.
None
: symbolPart, decodedData);
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
135
Debug.Assert(arguments.SymbolPart == AttributeLocation.
None
);