12 references to TryModifyEntry
Microsoft.CodeAnalysis (5)
SourceGeneration\Nodes\BatchNode.cs (1)
139if (!tableBuilder.TryModifyEntry(sourceValues, stopwatch.Elapsed, sourceInputs, EntryState.Modified))
SourceGeneration\Nodes\CombineNode.cs (1)
75if (state != EntryState.Modified || _comparer is null || !tableBuilder.TryModifyEntry(entry, stopwatch.Elapsed, stepInputs, state))
SourceGeneration\Nodes\InputNode.cs (1)
86var modified = tableBuilder.TryModifyEntry(inputItems[itemIndex], elapsedTime, noInputStepsStepInfo, EntryState.Modified);
SourceGeneration\Nodes\PredicateSyntaxStrategy.cs (1)
111if (transformInputState == EntryState.Added || !_transformTable.TryModifyEntry(transformed, stopwatch.Elapsed, noInputStepsStepInfo, transformInputState))
SourceGeneration\Nodes\SourceOutputNode.cs (1)
74if (entry.State != EntryState.Modified || !tableBuilder.TryModifyEntry(sourcesAndDiagnostics, stopwatch.Elapsed, inputs, entry.State))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
SourceGeneration\StateTableTests.cs (7)
213Assert.True(builder.TryModifyEntry(1, TimeSpan.Zero, default, EntryState.Modified)); 214Assert.True(builder.TryModifyEntry(2, TimeSpan.Zero, default, EntryState.Modified)); 215Assert.True(builder.TryModifyEntry(5, TimeSpan.Zero, default, EntryState.Modified)); 216Assert.True(builder.TryModifyEntry(4, TimeSpan.Zero, default, EntryState.Modified)); 237Assert.True(builder.TryModifyEntry(1, TimeSpan.Zero, default, EntryState.Modified)); // ((1, EntryState.Cached)) 238Assert.True(builder.TryModifyEntry(4, TimeSpan.Zero, default, EntryState.Modified)); // ((4, EntryState.Modified)) 239Assert.True(builder.TryModifyEntry(5, TimeSpan.Zero, default, EntryState.Modified)); // ((3, EntryState.Cached))