16 references to SourceGeneratorSyntaxTreeInfo
Microsoft.CodeAnalysis (16)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (8)
71
.Where((info, _) => info.Info.HasFlag(
SourceGeneratorSyntaxTreeInfo
.ContainsGlobalAliases))
104
.Where((info, _) => info.Info.HasFlag(
SourceGeneratorSyntaxTreeInfo
.ContainsAttributeList))
126
private static ImmutableArray<(SyntaxTree Tree,
SourceGeneratorSyntaxTreeInfo
Info)> GetSourceGeneratorInfo(
134
var
info = tree.GetSourceGeneratorInfo(syntaxHelper, cancellationToken);
135
if ((info &
SourceGeneratorSyntaxTreeInfo
.ContainsGlobalAliasesOrAttributeList) != 0)
139
var builder = ImmutableArray.CreateBuilder<(SyntaxTree Tree,
SourceGeneratorSyntaxTreeInfo
Info)>(count);
144
var
info = tree.GetSourceGeneratorInfo(syntaxHelper, cancellationToken);
145
if ((info &
SourceGeneratorSyntaxTreeInfo
.ContainsGlobalAliasesOrAttributeList) != 0)
Syntax\SyntaxTree.cs (8)
110
private
SourceGeneratorSyntaxTreeInfo
_sourceGeneratorInfo =
SourceGeneratorSyntaxTreeInfo
.NotComputedYet;
410
internal
SourceGeneratorSyntaxTreeInfo
GetSourceGeneratorInfo(
413
if (_sourceGeneratorInfo is
SourceGeneratorSyntaxTreeInfo
.NotComputedYet)
417
var
result =
SourceGeneratorSyntaxTreeInfo
.None;
420
result |=
SourceGeneratorSyntaxTreeInfo
.ContainsGlobalAliases;
423
result |=
SourceGeneratorSyntaxTreeInfo
.ContainsAttributeList;