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