171 references to IndexOf
Aspire.Hosting.Garnet.Tests (1)
Aspire.Hosting.RabbitMQ (1)
Aspire.Hosting.Redis.Tests (1)
Aspire.Hosting.Valkey.Tests (1)
dotnet-svcutil-lib (2)
dotnet-svcutil-lib.Tests (2)
IdeCoreBenchmarks (1)
illink (1)
Microsoft.Arcade.Test.Common (1)
Microsoft.Cci.Extensions (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (28)
IncrementalParsing\IncrementalParsingTests.cs (28)
495var span = new TextSpan(source.IndexOf("]") + 1, length: 1);
527var span = new TextSpan(source.IndexOf("."), length: 1);
572var prefixSpan = new TextSpan(source.IndexOf(prefix), length: prefix.Length);
573var suffixSpan = new TextSpan(source.IndexOf(suffix), length: suffix.Length);
619var valueSetterLinePosition = initialSource.IndexOf(valueSetterLine);
3628var span = new TextSpan(source.IndexOf(" A[]?"), 0);
3649var span = new TextSpan(src.IndexOf(":"), 1);
3670var span = new TextSpan(source.IndexOf(";"), 0);
3691var span = new TextSpan(source.IndexOf(";") + 1, 0);
3712var span = new TextSpan(source.IndexOf(";") + 1, 0);
3734var span = new TextSpan(source.IndexOf(substring) + substring.Length, 0);
3758var span = new TextSpan(source.IndexOf(substring) + substring.Length, 0);
3782var span = new TextSpan(source.IndexOf(substring) + substring.Length, 0);
3806var span = new TextSpan(source.IndexOf(substring) + substring.Length, 0);
3830var span = new TextSpan(source.IndexOf(substring) + substring.Length, 0);
3854var span = new TextSpan(source.IndexOf(substring) + substring.Length, 1);
3880var span = new TextSpan(source.IndexOf(substring) + substring.Length, 0);
3905var span = new TextSpan(source.IndexOf(substring), 0);
3931var span = new TextSpan(source.IndexOf(substring) + substring.Length, 0);
3957var span = new TextSpan(source.IndexOf(substring) + substring.Length, 0);
3975var span = new TextSpan(source.IndexOf(substring) + substring.Length, 0);
3993var span = new TextSpan(source.IndexOf(substring) + substring.Length, 0);
4011var span = new TextSpan(source.IndexOf(substring) + substring.Length, 0);
4054var span = new TextSpan(start: source.IndexOf(substring), length: 3); // Goo[Goo] -> [Goo]
4091var span = new TextSpan(start: source.IndexOf(":") + 1, length: 0);
4114var position1 = source.IndexOf("i =") + 1;
4115var position2 = source.IndexOf("i <") + 1;
4116var position3 = source.IndexOf("i++") + 1;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.Features (5)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (53)
SemanticModelReuse\SemanticModelReuseTests.cs (49)
54var model1 = await document.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
68var model1 = await document.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
69var model2 = await document.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
88var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
94var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
105var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
111var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
117var model3 = await document3.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
128var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
134var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
140var model3 = await document3.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
151var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
157var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
163var model3 = await document3.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
174var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
180var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
186var model3 = await document3.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
197var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
203var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
209var model3 = await document3.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
221var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
227var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
231CSharpSyntaxContext.CreateContext(document2, model2, source.IndexOf("void"), CancellationToken.None);
248var model1 = await document1.ReuseExistingSpeculativeModelAsync(source1.IndexOf("return"), CancellationToken.None);
254var model2 = await document2.ReuseExistingSpeculativeModelAsync(source2.IndexOf("{ return"), CancellationToken.None);
258CSharpSyntaxContext.CreateContext(document2, model2, source2.IndexOf("{ return"), CancellationToken.None);
289var model1 = await document.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
309var model1 = await document.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
310var model2 = await document.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
335var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
347var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
364var model1 = await document1.ReuseExistingSpeculativeModelAsync(source1.IndexOf("return"), CancellationToken.None);
377var model2 = await document2.ReuseExistingSpeculativeModelAsync(source2.IndexOf("return"), CancellationToken.None);
389var model3 = await document3.ReuseExistingSpeculativeModelAsync(source2.IndexOf("return"), CancellationToken.None);
406var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
418var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
430var model3 = await document3.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
449var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
463var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
477var model3 = await document3.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
496var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
510var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
524var model3 = await document3.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
542var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
554var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
558VisualBasicSyntaxContext.CreateContext(document2, model2, source.IndexOf("sub"), CancellationToken.None);
575var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
588var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
592VisualBasicSyntaxContext.CreateContext(document2, model2, source.IndexOf("return"), CancellationToken.None);
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Installers (3)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.DotNet.Build.Tasks.Workloads (4)
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.DotNet.SignCheckLibrary (3)
Microsoft.DotNet.SignTool (1)
Microsoft.DotNet.XliffTasks (2)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.ServiceDiscovery (1)
Microsoft.Interop.JavaScript.JSImportGenerator (4)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.ML.Data (3)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Roslyn.Test.Performance.Utilities (1)
Roslyn.VisualStudio.Next.UnitTests (4)
System.Net.NetworkInformation (1)
System.ServiceModel.Primitives (1)