140 references to New
Microsoft.CodeAnalysis (2)
SourceGeneration\Nodes\NodeStateTable.cs (2)
507
(EntryState.Added, EntryState.Added) => IncrementalStepRunReason.
New
,
513
(EntryState.Modified, EntryState.Added) => IncrementalStepRunReason.
New
,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (113)
SourceGeneration\GeneratorDriverTests.cs (24)
1699
source => Assert.Equal(IncrementalStepRunReason.
New
, source.Source.Outputs[source.OutputIndex].Reason));
1701
output => Assert.Equal(IncrementalStepRunReason.
New
, output.Reason));
1751
Assert.Equal(IncrementalStepRunReason.
New
, source.Source.Outputs[source.OutputIndex].Reason);
1757
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
1767
Assert.Equal(IncrementalStepRunReason.
New
, source.Source.Outputs[source.OutputIndex].Reason);
1773
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
1820
Assert.Equal(IncrementalStepRunReason.
New
, source.Source.Outputs[source.OutputIndex].Reason);
1826
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
2011
Assert.Equal(IncrementalStepRunReason.
New
, source.Source.Outputs[source.OutputIndex].Reason);
2016
Assert.Equal(IncrementalStepRunReason.
New
, source.Source.Outputs[source.OutputIndex].Reason);
2024
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
2407
Assert.Equal(IncrementalStepRunReason.
New
, step.Outputs[0].Reason);
2412
Assert.Equal(IncrementalStepRunReason.
New
, step.Outputs[0].Reason);
2644
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
2722
Assert.Equal(IncrementalStepRunReason.
New
, consumedInput.Reason);
2728
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
2738
Assert.Equal(IncrementalStepRunReason.
New
, consumedInput.Reason);
2744
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
2754
Assert.Equal(IncrementalStepRunReason.
New
, consumedInput.Reason);
2760
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
2912
Assert.Equal(IncrementalStepRunReason.
New
, consumedInput.Reason);
2918
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
2929
Assert.Equal(IncrementalStepRunReason.
New
, consumedInput.Reason);
2935
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (15)
1586
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1638
t => Assert.Equal(IncrementalStepRunReason.
New
, t.Reason),
1639
t => Assert.Equal(IncrementalStepRunReason.
New
, t.Reason));
1696
s => Assert.Equal(IncrementalStepRunReason.
New
, s.Outputs.Single().Reason),
1697
s => Assert.Equal(IncrementalStepRunReason.
New
, s.Outputs.Single().Reason));
1746
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["compilationUnit_ForAttribute"].Single().Outputs.Single().Reason);
1747
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1748
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason);
1749
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1750
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1795
o => Assert.Equal(IncrementalStepRunReason.
New
, o.Reason));
1796
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1797
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["result_ForAttributeInternal"].Single().Outputs.Single().Reason);
1798
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["compilationAndGroupedNodes_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
1799
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["result_ForAttributeWithMetadataName"].Single().Outputs.Single().Reason);
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (12)
1225
o => Assert.Equal(IncrementalStepRunReason.
New
, o.Reason));
1226
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["compilationUnitAndGlobalAliases_ForAttribute"].Single().Outputs.Single().Reason);
1227
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1430
s => Assert.Equal(IncrementalStepRunReason.
New
, s.Outputs.Single().Reason));
1437
o => Assert.Equal(IncrementalStepRunReason.
New
, o.Reason));
1439
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1474
s => Assert.Equal(IncrementalStepRunReason.
New
, s.Outputs.Single().Reason));
1480
o => Assert.Equal(IncrementalStepRunReason.
New
, o.Reason));
1482
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps["result_ForAttribute"].Single().Outputs.Single().Reason);
1587
o => Assert.Equal(IncrementalStepRunReason.
New
, o.Reason));
1590
s => Assert.Equal(IncrementalStepRunReason.
New
, s.Outputs.Single().Reason));
1593
s => Assert.Equal(IncrementalStepRunReason.
New
, s.Outputs.Single().Reason));
SourceGeneration\StateTableTests.cs (19)
388
Assert.Equal(IncrementalStepRunReason.
New
, source.Source.Outputs[source.OutputIndex].Reason);
394
Assert.Equal(IncrementalStepRunReason.
New
, source.Source.Outputs[source.OutputIndex].Reason);
400
Assert.Equal(IncrementalStepRunReason.
New
, source.Source.Outputs[source.OutputIndex].Reason);
406
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
647
Assert.Equal(IncrementalStepRunReason.
New
, source.Source.Outputs[source.OutputIndex].Reason);
653
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
809
Assert.Equal((4, IncrementalStepRunReason.
New
), Assert.Single(step.Outputs));
814
Assert.Equal((5, IncrementalStepRunReason.
New
), Assert.Single(step.Outputs));
819
Assert.Equal((6, IncrementalStepRunReason.
New
), Assert.Single(step.Outputs));
850
Assert.Collection(step.Outputs, output => Assert.Equal((4, IncrementalStepRunReason.
New
), output)),
852
Assert.Collection(step.Outputs, output => Assert.Equal((5, IncrementalStepRunReason.
New
), output)),
854
Assert.Collection(step.Outputs, output => Assert.Equal((6, IncrementalStepRunReason.
New
), output)));
899
Assert.Equal(IncrementalStepRunReason.
New
, step.Inputs[0].Source.Outputs[step.Inputs[0].OutputIndex].Reason);
900
Assert.Collection(step.Outputs, output => Assert.Equal(((4, 0), IncrementalStepRunReason.
New
), output));
905
Assert.Equal(IncrementalStepRunReason.
New
, step.Inputs[0].Source.Outputs[step.Inputs[0].OutputIndex].Reason);
906
Assert.Collection(step.Outputs, output => Assert.Equal(((5, 0), IncrementalStepRunReason.
New
), output));
911
Assert.Equal(IncrementalStepRunReason.
New
, step.Inputs[0].Source.Outputs[step.Inputs[0].OutputIndex].Reason);
912
Assert.Collection(step.Outputs, output => Assert.Equal(((6, 0), IncrementalStepRunReason.
New
), output));
1021
Assert.Equal(IncrementalStepRunReason.
New
, output.Reason);
SourceGeneration\SyntaxAwareGeneratorTests.cs (43)
1034
output => Assert.Equal(("fieldA", IncrementalStepRunReason.
New
), output)),
1036
output => Assert.Equal(("fieldB", IncrementalStepRunReason.
New
), output)),
1038
output => Assert.Equal(("fieldC", IncrementalStepRunReason.
New
), output)));
1060
output => Assert.Equal(("fieldD", IncrementalStepRunReason.
New
), output)),
1062
output => Assert.Equal(("fieldE", IncrementalStepRunReason.
New
), output)));
1111
output => Assert.Equal(("fieldA", IncrementalStepRunReason.
New
), output)),
1113
output => Assert.Equal(("fieldB", IncrementalStepRunReason.
New
), output)),
1115
output => Assert.Equal(("fieldC", IncrementalStepRunReason.
New
), output)),
1117
output => Assert.Equal(("fieldD", IncrementalStepRunReason.
New
), output)),
1119
output => Assert.Equal(("fieldE", IncrementalStepRunReason.
New
), output)));
1241
output => Assert.Equal(("fieldA", IncrementalStepRunReason.
New
), output)),
1243
output => Assert.Equal(("fieldB", IncrementalStepRunReason.
New
), output)),
1245
output => Assert.Equal(("fieldC", IncrementalStepRunReason.
New
), output)));
1416
output => Assert.Equal(("fieldA", IncrementalStepRunReason.
New
), output)),
1418
output => Assert.Equal(("fieldB", IncrementalStepRunReason.
New
), output)),
1420
output => Assert.Equal(("fieldC", IncrementalStepRunReason.
New
), output)));
1530
output => Assert.Equal(("fieldA", IncrementalStepRunReason.
New
), output)),
1532
output => Assert.Equal(("fieldB", IncrementalStepRunReason.
New
), output)),
1534
output => Assert.Equal(("fieldC", IncrementalStepRunReason.
New
), output)));
1701
output => Assert.Equal(("fieldA", IncrementalStepRunReason.
New
), output)),
1703
output => Assert.Equal(("fieldB", IncrementalStepRunReason.
New
), output)),
1705
output => Assert.Equal(("fieldC", IncrementalStepRunReason.
New
), output)));
1708
output => Assert.Equal(("Output1_fieldA", IncrementalStepRunReason.
New
), output)),
1710
output => Assert.Equal(("Output1_fieldB", IncrementalStepRunReason.
New
), output)),
1712
output => Assert.Equal(("Output1_fieldC", IncrementalStepRunReason.
New
), output)),
1714
output => Assert.Equal(("Output2_fieldA", IncrementalStepRunReason.
New
), output)),
1716
output => Assert.Equal(("Output2_fieldB", IncrementalStepRunReason.
New
), output)),
1718
output => Assert.Equal(("Output2_fieldC", IncrementalStepRunReason.
New
), output)));
1760
output => Assert.Equal(("fieldA", IncrementalStepRunReason.
New
), output)),
1762
output => Assert.Equal(("fieldB", IncrementalStepRunReason.
New
), output)),
1764
output => Assert.Equal(("fieldC", IncrementalStepRunReason.
New
), output)));
1767
output => Assert.Equal(("fieldA", IncrementalStepRunReason.
New
), output)),
1769
output => Assert.Equal(("fieldB", IncrementalStepRunReason.
New
), output)),
1771
output => Assert.Equal(("fieldC", IncrementalStepRunReason.
New
), output)));
1814
output => Assert.Equal(("fieldA", IncrementalStepRunReason.
New
), output)),
1816
output => Assert.Equal(("fieldA", IncrementalStepRunReason.
New
), output)),
1818
output => Assert.Equal(("fieldB", IncrementalStepRunReason.
New
), output)),
1820
output => Assert.Equal(("fieldC", IncrementalStepRunReason.
New
), output)),
1822
output => Assert.Equal(("fieldB", IncrementalStepRunReason.
New
), output)),
1824
output => Assert.Equal(("fieldC", IncrementalStepRunReason.
New
), output)));
1827
output => Assert.Equal(("fieldA", IncrementalStepRunReason.
New
), output)),
1829
output => Assert.Equal(("fieldB", IncrementalStepRunReason.
New
), output)),
1831
output => Assert.Equal(("fieldC", IncrementalStepRunReason.
New
), output)));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (23)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.vb (15)
1061
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("result_ForAttributeWithMetadataName").Single().Outputs.Single().Reason)
1113
Sub(t) Assert.Equal(IncrementalStepRunReason.
New
, t.Reason),
1114
Sub(t) Assert.Equal(IncrementalStepRunReason.
New
, t.Reason))
1171
Sub(s) Assert.Equal(IncrementalStepRunReason.
New
, s.Outputs.Single().Reason),
1172
Sub(s) Assert.Equal(IncrementalStepRunReason.
New
, s.Outputs.Single().Reason))
1223
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason)
1224
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason)
1225
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("result_ForAttributeInternal").Single().Outputs.Single().Reason)
1226
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("compilationAndGroupedNodes_ForAttributeWithMetadataName").Single().Outputs.Single().Reason)
1227
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("result_ForAttributeWithMetadataName").Single().Outputs.Single().Reason)
1274
Sub(o) Assert.Equal(IncrementalStepRunReason.
New
, o.Reason))
1275
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason)
1276
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("result_ForAttributeInternal").Single().Outputs.Single().Reason)
1277
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("compilationAndGroupedNodes_ForAttributeWithMetadataName").Single().Outputs.Single().Reason)
1278
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("result_ForAttributeWithMetadataName").Single().Outputs.Single().Reason)
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.vb (8)
1261
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("compilationUnit_ForAttribute").Single().Outputs.Single().Reason)
1262
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("compilationUnitAndGlobalAliases_ForAttribute").Single().Outputs.Single().Reason)
1263
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason)
1343
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason)
1381
Assert.Equal(IncrementalStepRunReason.
New
, runResult.TrackedSteps("result_ForAttribute").Single().Outputs.Single().Reason)
1468
Sub(_step) Assert.Equal(IncrementalStepRunReason.
New
, _step.Reason))
1471
Sub(_step) Assert.Equal(IncrementalStepRunReason.
New
, _step.Outputs.Single().Reason))
1474
Sub(_step) Assert.Equal(IncrementalStepRunReason.
New
, _step.Outputs.Single().Reason))
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionWithSourceGeneratorTests.cs (2)
199
source => Assert.Equal(IncrementalStepRunReason.
New
, source.Source.Outputs[source.OutputIndex].Reason));
201
output => Assert.Equal(IncrementalStepRunReason.
New
, output.Reason));