16 references to SourceGeneratorSyntaxTreeInfo
Microsoft.CodeAnalysis (16)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (8)
71
.Where(static (info, _) => info.Info.HasFlag(
SourceGeneratorSyntaxTreeInfo
.ContainsGlobalAliases))
103
.Where(static (info, _) => info.Info.HasFlag(
SourceGeneratorSyntaxTreeInfo
.ContainsAttributeList))
125
private static ImmutableArray<(SyntaxTree Tree,
SourceGeneratorSyntaxTreeInfo
Info)> GetSourceGeneratorInfo(
133
var
info = tree.GetSourceGeneratorInfo(syntaxHelper, cancellationToken);
134
if ((info &
SourceGeneratorSyntaxTreeInfo
.ContainsGlobalAliasesOrAttributeList) != 0)
138
var builder = ImmutableArray.CreateBuilder<(SyntaxTree Tree,
SourceGeneratorSyntaxTreeInfo
Info)>(count);
143
var
info = tree.GetSourceGeneratorInfo(syntaxHelper, cancellationToken);
144
if ((info &
SourceGeneratorSyntaxTreeInfo
.ContainsGlobalAliasesOrAttributeList) != 0)
Syntax\SyntaxTree.cs (8)
111
private
SourceGeneratorSyntaxTreeInfo
_sourceGeneratorInfo =
SourceGeneratorSyntaxTreeInfo
.NotComputedYet;
425
internal
SourceGeneratorSyntaxTreeInfo
GetSourceGeneratorInfo(
428
if (_sourceGeneratorInfo is
SourceGeneratorSyntaxTreeInfo
.NotComputedYet)
432
var
result =
SourceGeneratorSyntaxTreeInfo
.None;
435
result |=
SourceGeneratorSyntaxTreeInfo
.ContainsGlobalAliases;
438
result |=
SourceGeneratorSyntaxTreeInfo
.ContainsAttributeList;