121 references to ParseText
ConfigurationSchemaGenerator.Tests (1)
Microsoft.AspNetCore.Analyzers.Test (1)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (57)
Diagnostics\DiagnosticAnalyzerTests.cs (44)
1478var tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: "SourceFileRegular.cs");
1480tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: "AssemblyInfo.cs");
1486tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: fileName);
1496tree = CSharpSyntaxTree.ParseText(string.Format(autoGeneratedPrefix + source, treeNum++), path: $"SourceFileWithAutoGeneratedComment{i++}.cs");
1506tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: myGeneratedFileTrueName);
1514tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: myGeneratedFileCaseInsensitiveTrueName);
1520tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: "MyGeneratedFileFalse.cs");
1526tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: "MyGeneratedFileAuto.cs");
1570var tree = CSharpSyntaxTree.ParseText(source, path: "SourceFileRegular.cs");
1612var tree1 = CSharpSyntaxTree.ParseText(source1, path: "SourceFileRegular.cs");
1613var tree2 = CSharpSyntaxTree.ParseText(source2, path: "SourceFileRegular.Designer.cs");
1905var tree1 = CSharpSyntaxTree.ParseText(source1, path: "Source1_File1.cs");
1906var tree2 = CSharpSyntaxTree.ParseText(source1, path: "Source1_File2.cs");
1907var tree3 = CSharpSyntaxTree.ParseText(source2, path: "Source2_File3.cs");
1908var tree4 = CSharpSyntaxTree.ParseText(source3, path: "Source3_File4.generated.cs");
1909var tree5 = CSharpSyntaxTree.ParseText(source3, path: "Source3_File5.designer.cs");
1943var tree = CSharpSyntaxTree.ParseText(source, path: "Source.cs");
1964var tree = CSharpSyntaxTree.ParseText(source, path: "Source.cs");
1987var tree = CSharpSyntaxTree.ParseText(source, path: "Source.cs");
2008var tree = CSharpSyntaxTree.ParseText(source, path: "Source.cs");
2033var tree = CSharpSyntaxTree.ParseText(source, path: "Source.cs");
2053var tree = CSharpSyntaxTree.ParseText(source, path: "Source.cs");
2072var tree = CSharpSyntaxTree.ParseText(source, path: "Source.cs");
2095var tree = CSharpSyntaxTree.ParseText(source, path: "Source.cs");
2116var tree = CSharpSyntaxTree.ParseText(source, path: "Source.cs");
2142var tree = CSharpSyntaxTree.ParseText(source, path: "Source.cs");
2175var tree = CSharpSyntaxTree.ParseText(source, path: "Source.cs");
2240var tree = CSharpSyntaxTree.ParseText(source, path: "Source.cs");
2532var tree = CSharpSyntaxTree.ParseText(source);
2561var tree = CSharpSyntaxTree.ParseText(source);
2589var tree = CSharpSyntaxTree.ParseText(source);
2607var tree = CSharpSyntaxTree.ParseText(source);
2625var tree = CSharpSyntaxTree.ParseText(source);
2653var tree = CSharpSyntaxTree.ParseText(source);
2849var tree = CSharpSyntaxTree.ParseText(source);
3591var tree = CSharpSyntaxTree.ParseText(source);
3621var tree = CSharpSyntaxTree.ParseText(source);
3642var tree = CSharpSyntaxTree.ParseText(source);
3879var tree = CSharpSyntaxTree.ParseText(string.Empty);
3914var tree = CSharpSyntaxTree.ParseText(string.Empty);
4037var tree = CSharpSyntaxTree.ParseText(@"class C { }");
4393var tree = CSharpSyntaxTree.ParseText(@"class C { }");
4418var tree = CSharpSyntaxTree.ParseText(source);
4419var compilation = CreateCompilationWithCSharp(new[] { tree, CSharpSyntaxTree.ParseText(IsExternalInitTypeDefinition) });
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
SourceGeneration\GeneratorDriverTests.cs (10)
1514compilation = compilation.ReplaceSyntaxTree(syntaxTree, CSharpSyntaxTree.ParseText("""
2168compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.Single(), CSharpSyntaxTree.ParseText(source, parseOptions));
2230compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.Single(), CSharpSyntaxTree.ParseText(source, parseOptions));
2373compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), CSharpSyntaxTree.ParseText(source, parseOptions));
2432var c2 = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), CSharpSyntaxTree.ParseText("class E{}", parseOptions));
3617var syntaxTree = CSharpSyntaxTree.ParseText(source, parseOptions, path: "/detached");
3650var invalidSyntaxTree = CSharpSyntaxTree.ParseText(source, parseOptions, path: "/detached");
3681var syntaxTree = CSharpSyntaxTree.ParseText(source, parseOptions, path: "/detached");
3711var invalidSyntaxTree = CSharpSyntaxTree.ParseText(source, parseOptions, path: "/detached");
4104compilation = compilation.ReplaceSyntaxTree(tree, CSharpSyntaxTree.ParseText(source, parseOptions));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.DotNet.GenFacades (2)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.ML.CodeGenerator (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Mvc.Analyzers.Test (1)
System.Windows.Forms.Design.Tests (1)
System.Windows.Forms.PrivateSourceGenerators.Tests (1)
WinShimmer (1)