226 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)
Microsoft.Arcade.Test.Common (1)
Microsoft.Build (1)
Microsoft.Build.Engine.OM.UnitTests (1)
Microsoft.Build.Engine.UnitTests (47)
Microsoft.Build.Tasks.Core (1)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.UnitTests.Shared (1)
Microsoft.Build.Utilities.Core (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 (2)
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.EditorFeatures2.UnitTests (2)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.VisualBasic.Symbol.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);
288var model1 = await document.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
307var model1 = await document.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
308var model2 = await document.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
332var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
343var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
359var model1 = await document1.ReuseExistingSpeculativeModelAsync(source1.IndexOf("return"), CancellationToken.None);
371var model2 = await document2.ReuseExistingSpeculativeModelAsync(source2.IndexOf("return"), CancellationToken.None);
382var model3 = await document3.ReuseExistingSpeculativeModelAsync(source2.IndexOf("return"), CancellationToken.None);
398var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
409var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
420var model3 = await document3.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
438var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
451var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
464var model3 = await document3.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
482var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
495var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
508var model3 = await document3.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
525var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
536var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
540VisualBasicSyntaxContext.CreateContext(document2, model2, source.IndexOf("sub"), CancellationToken.None);
556var model1 = await document1.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
568var model2 = await document2.ReuseExistingSpeculativeModelAsync(source.IndexOf("return"), CancellationToken.None);
572VisualBasicSyntaxContext.CreateContext(document2, model2, source.IndexOf("return"), CancellationToken.None);
Microsoft.DotNet.Build.Tasks.Feed (1)
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)
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
MSBuild (1)
MSBuildTaskHost (1)
Roslyn.Test.Performance.Utilities (1)
Roslyn.VisualStudio.Next.UnitTests (4)
System.Net.NetworkInformation (1)