28 instantiations of InputNode
Microsoft.CodeAnalysis (10)
SourceGeneration\Nodes\InputNode.cs (3)
100
public IIncrementalGeneratorNode<T> WithComparer(IEqualityComparer<T> comparer) => new
InputNode
<T>(_getInput, _registerOutput, _inputComparer, comparer, _name);
102
public IIncrementalGeneratorNode<T> WithTrackingName(string name) => new
InputNode
<T>(_getInput, _registerOutput, _inputComparer, _comparer, name);
104
public InputNode<T> WithRegisterOutput(Action<IIncrementalGeneratorOutputNode> registerOutput) => new
InputNode
<T>(_getInput, registerOutput, _inputComparer, _comparer, _name);
SourceGeneration\Nodes\SharedInputNodes.cs (7)
18
public static readonly InputNode<Compilation> Compilation = new
InputNode
<Compilation>(b => ImmutableArray.Create(b.Compilation));
20
public static readonly InputNode<CompilationOptions> CompilationOptions =
new
(b => ImmutableArray.Create(b.Compilation.Options), ReferenceEqualityComparer.Instance);
22
public static readonly InputNode<ParseOptions> ParseOptions = new
InputNode
<ParseOptions>(b => ImmutableArray.Create(b.DriverState.ParseOptions));
24
public static readonly InputNode<AdditionalText> AdditionalTexts = new
InputNode
<AdditionalText>(b => b.DriverState.AdditionalTexts);
26
public static readonly InputNode<SyntaxTree> SyntaxTrees = new
InputNode
<SyntaxTree>(b => b.Compilation.SyntaxTrees.ToImmutableArray());
28
public static readonly InputNode<AnalyzerConfigOptionsProvider> AnalyzerConfigOptions = new
InputNode
<AnalyzerConfigOptionsProvider>(b => ImmutableArray.Create(b.DriverState.OptionsProvider));
30
public static readonly InputNode<MetadataReference> MetadataReferences = new
InputNode
<MetadataReference>(b => b.Compilation.ExternalReferences);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
SourceGeneration\StateTableTests.cs (18)
372
var inputNode = new
InputNode
<int>((_) => ImmutableArray.Create(1, 2, 3));
414
var inputNode = new
InputNode
<int>((_) => ImmutableArray.Create(1, 2, 3));
432
var inputNode = new
InputNode
<int>((_) => ImmutableArray.Create(1, 2, 3));
478
var inputNode = new
InputNode
<int>((_) => inputValue).WithTrackingName("Input");
525
var inputNode = new
InputNode
<int>((_) => ImmutableArray.Create(1, 2, thirdElement++));
544
var inputNode = new
InputNode
<int>((_) => ImmutableArray.Create(1, 2, thirdElement));
592
var inputNode = new
InputNode
<int>((_) => ImmutableArray.Create(1));
623
var inputNode = new
InputNode
<int>((_) => ImmutableArray.Create(1));
659
var inputNode = new
InputNode
<int>((_) => ImmutableArray.Create(value));
698
var inputNode = new
InputNode
<int>((_) => ImmutableArray.Create(value));
736
var inputNode = new
InputNode
<int>((_) => inputNodeValue).WithTrackingName("TestStep");
789
var inputNode = new
InputNode
<int>((_) => inputNodeValue);
823
var inputNode = new
InputNode
<int>((_) => inputNodeValue);
824
var input2Node = new
InputNode
<int>((_) => ImmutableArray.Create(0));
880
var inputNode = new
InputNode
<int>((_) => ImmutableArray.Create(1, 2, 3))
898
var inputNode = new
InputNode
<int>((_) => ImmutableArray.Create(1, 2, thirdValue)).WithTrackingName("Input");
932
var inputNode = new
InputNode
<ImmutableArray<int>>(_ => ImmutableArray.Create(values)).WithTrackingName("Input");
961
var inputNode = new
InputNode
<ImmutableArray<int>>(_ => ImmutableArray.Create(values)).WithTrackingName("Input");
20 references to InputNode
Microsoft.CodeAnalysis (8)
SourceGeneration\Nodes\InputNode.cs (1)
104
public
InputNode
<T> WithRegisterOutput(Action<IIncrementalGeneratorOutputNode> registerOutput) => new InputNode<T>(_getInput, registerOutput, _inputComparer, _comparer, _name);
SourceGeneration\Nodes\SharedInputNodes.cs (7)
18
public static readonly
InputNode
<Compilation> Compilation = new InputNode<Compilation>(b => ImmutableArray.Create(b.Compilation));
20
public static readonly
InputNode
<CompilationOptions> CompilationOptions = new(b => ImmutableArray.Create(b.Compilation.Options), ReferenceEqualityComparer.Instance);
22
public static readonly
InputNode
<ParseOptions> ParseOptions = new InputNode<ParseOptions>(b => ImmutableArray.Create(b.DriverState.ParseOptions));
24
public static readonly
InputNode
<AdditionalText> AdditionalTexts = new InputNode<AdditionalText>(b => b.DriverState.AdditionalTexts);
26
public static readonly
InputNode
<SyntaxTree> SyntaxTrees = new InputNode<SyntaxTree>(b => b.Compilation.SyntaxTrees.ToImmutableArray());
28
public static readonly
InputNode
<AnalyzerConfigOptionsProvider> AnalyzerConfigOptions = new InputNode<AnalyzerConfigOptionsProvider>(b => ImmutableArray.Create(b.DriverState.OptionsProvider));
30
public static readonly
InputNode
<MetadataReference> MetadataReferences = new InputNode<MetadataReference>(b => b.Compilation.ExternalReferences);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
SourceGeneration\StateTableTests.cs (12)
372
var
inputNode = new InputNode<int>((_) => ImmutableArray.Create(1, 2, 3));
414
var
inputNode = new InputNode<int>((_) => ImmutableArray.Create(1, 2, 3));
432
var
inputNode = new InputNode<int>((_) => ImmutableArray.Create(1, 2, 3));
525
var
inputNode = new InputNode<int>((_) => ImmutableArray.Create(1, 2, thirdElement++));
544
var
inputNode = new InputNode<int>((_) => ImmutableArray.Create(1, 2, thirdElement));
592
var
inputNode = new InputNode<int>((_) => ImmutableArray.Create(1));
623
var
inputNode = new InputNode<int>((_) => ImmutableArray.Create(1));
659
var
inputNode = new InputNode<int>((_) => ImmutableArray.Create(value));
698
var
inputNode = new InputNode<int>((_) => ImmutableArray.Create(value));
789
var
inputNode = new InputNode<int>((_) => inputNodeValue);
823
var
inputNode = new InputNode<int>((_) => inputNodeValue);
824
var
input2Node = new InputNode<int>((_) => ImmutableArray.Create(0));