73 references to QuickAttributes
Microsoft.CodeAnalysis.CSharp (73)
Declarations\DeclarationTreeBuilder.cs (18)
55
private
QuickAttributes
_nonGlobalAliasedQuickAttributes;
229
quickAttributes:
QuickAttributes
.None);
257
quickAttributes:
QuickAttributes
.None);
344
quickAttributes:
QuickAttributes
.None);
361
private static
QuickAttributes
GetQuickAttributes(
364
var
result =
QuickAttributes
.None;
404
private static
QuickAttributes
GetNonGlobalAliasedQuickAttributes(CompilationUnitSyntax compilationUnit)
406
var
result = GetQuickAttributes(compilationUnit.Usings, global: false);
418
private static
QuickAttributes
GetNonGlobalAliasedQuickAttributes(BaseNamespaceDeclarationSyntax @namespace)
420
var
result = GetQuickAttributes(@namespace.Usings, global: false);
458
var
globalAliasedQuickAttributes = GetQuickAttributes(compilationUnit.Usings, global: true);
751
var
quickAttributes = GetQuickAttributes(node.AttributeLists);
815
var
quickAttributes = DeclarationTreeBuilder.GetQuickAttributes(node.AttributeLists);
848
var
quickAttributes = DeclarationTreeBuilder.GetQuickAttributes(node.AttributeLists);
869
private static
QuickAttributes
GetQuickAttributes(SyntaxList<AttributeListSyntax> attributeLists)
871
var
result =
QuickAttributes
.None;
Declarations\MergedTypeDeclaration.cs (1)
55
public ImmutableArray<SyntaxList<AttributeListSyntax>> GetAttributeDeclarations(
QuickAttributes
? quickAttributes)
Declarations\RootSingleNamespaceDeclaration.cs (2)
25
public
QuickAttributes
GlobalAliasedQuickAttributes { get; }
36
QuickAttributes
globalAliasedQuickAttributes)
Declarations\SingleTypeDeclaration.cs (2)
38
public
QuickAttributes
QuickAttributes { get; }
83
QuickAttributes
quickAttributes)
Symbols\Source\QuickAttributeChecker.cs (26)
26
private readonly Dictionary<string,
QuickAttributes
> _nameToAttributeMap;
49
result.AddName(AttributeDescription.TypeIdentifierAttribute.Name,
QuickAttributes
.TypeIdentifier);
50
result.AddName(AttributeDescription.TypeForwardedToAttribute.Name,
QuickAttributes
.TypeForwardedTo);
51
result.AddName(AttributeDescription.AssemblyKeyNameAttribute.Name,
QuickAttributes
.AssemblyKeyName);
52
result.AddName(AttributeDescription.AssemblyKeyFileAttribute.Name,
QuickAttributes
.AssemblyKeyFile);
53
result.AddName(AttributeDescription.AssemblySignatureKeyAttribute.Name,
QuickAttributes
.AssemblySignatureKey);
63
_nameToAttributeMap = new Dictionary<string,
QuickAttributes
>(StringComparer.Ordinal);
69
_nameToAttributeMap = new Dictionary<string,
QuickAttributes
>(previous._nameToAttributeMap, StringComparer.Ordinal);
73
private void AddName(string name,
QuickAttributes
newAttributes)
78
var
currentValue =
QuickAttributes
.None;
81
QuickAttributes
newValue = newAttributes | currentValue;
103
if (_nameToAttributeMap.TryGetValue(target, out
var
foundAttributes))
122
public bool IsPossibleMatch(AttributeSyntax attr,
QuickAttributes
pattern)
128
QuickAttributes
foundAttributes;
156
/// Returns the <see cref="
QuickAttributes
"/> that corresponds to the particular type
160
public static
QuickAttributes
GetQuickAttributes(string name, bool inAttribute)
163
Debug.Assert(
QuickAttributes
.Last ==
QuickAttributes
.AssemblySignatureKey);
165
var
result =
QuickAttributes
.None;
168
result |=
QuickAttributes
.TypeIdentifier;
172
result |=
QuickAttributes
.TypeForwardedTo;
176
result |=
QuickAttributes
.AssemblyKeyName;
180
result |=
QuickAttributes
.AssemblyKeyFile;
184
result |=
QuickAttributes
.AssemblySignatureKey;
Symbols\Source\SourceAssemblySymbol.cs (21)
216
private string? GetWellKnownAttributeDataStringField(Func<CommonAssemblyWellKnownAttributeData, string> fieldGetter, string? missingValue = null,
QuickAttributes
? attributeMatchesOpt = null)
352
WellKnownAttributeData.StringMissingValue,
QuickAttributes
.AssemblyKeyName);
362
WellKnownAttributeData.StringMissingValue,
QuickAttributes
.AssemblyKeyFile);
380
missingValue: null,
QuickAttributes
.AssemblySignatureKey);
1458
private CommonAssemblyWellKnownAttributeData GetLimitedNetModuleDecodedWellKnownAttributeData(
QuickAttributes
attributeMatches)
1460
Debug.Assert(attributeMatches is
QuickAttributes
.AssemblyKeyFile
1461
or
QuickAttributes
.AssemblyKeyName
1462
or
QuickAttributes
.AssemblySignatureKey);
1484
ImmutableArray<string> netModuleNames,
QuickAttributes
attributeMatches)
1511
void limitedDecodeWellKnownAttribute(CSharpAttributeData attribute,
QuickAttributes
attributeMatches, ref CommonAssemblyWellKnownAttributeData result)
1513
if (attributeMatches is
QuickAttributes
.AssemblySignatureKey &&
1519
else if (attributeMatches is
QuickAttributes
.AssemblyKeyFile &&
1525
else if (attributeMatches is
QuickAttributes
.AssemblyKeyName &&
1660
private CommonAssemblyWellKnownAttributeData? GetSourceDecodedWellKnownAttributeData(
QuickAttributes
attribute)
1671
QuickAttributes
.AssemblySignatureKey => isPossibleAssemblySignatureKeyAttribute,
1672
QuickAttributes
.AssemblyKeyName => isPossibleAssemblyKeyNameAttribute,
1673
QuickAttributes
.AssemblyKeyFile => isPossibleAssemblyKeyFileAttribute,
1684
return checker.IsPossibleMatch(node,
QuickAttributes
.AssemblySignatureKey);
1690
return checker.IsPossibleMatch(node,
QuickAttributes
.AssemblyKeyName);
1696
return checker.IsPossibleMatch(node,
QuickAttributes
.AssemblyKeyFile);
1764
if (checker.IsPossibleMatch(node,
QuickAttributes
.TypeForwardedTo))
Symbols\Source\SourceNamedTypeSymbol.cs (3)
776
internal ImmutableArray<SyntaxList<AttributeListSyntax>> GetAttributeDeclarations(
QuickAttributes
? quickAttributes = null)
1266
ImmutableArray<SyntaxList<AttributeListSyntax>> attributeLists = GetAttributeDeclarations(
QuickAttributes
.TypeIdentifier);
1277
if (checker.IsPossibleMatch(attr,
QuickAttributes
.TypeIdentifier))