28 references to ParseText
Microsoft.AspNetCore.Mvc.Razor.Extensions.UnitTests (2)
ViewComponentTagHelperDescriptorFactoryTest.cs (1)
14private static readonly Compilation _compilation = TestCompilation.Create(syntaxTrees: [CSharpSyntaxTree.ParseText(Microsoft.CodeAnalysis.Text.SourceText.From(AdditionalCode, System.Text.Encoding.UTF8))], references: []);
ViewComponentTagHelperProducerTest.cs (1)
25var compilation = TestCompilation.Create().AddSyntaxTrees(CSharpSyntaxTree.ParseText(Microsoft.CodeAnalysis.Text.SourceText.From(code, System.Text.Encoding.UTF8)));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CSharpCompiler.cs (1)
75return CSharpSyntaxTree.ParseText(
Microsoft.AspNetCore.Razor.Language.UnitTests (1)
IntegrationTests\CodeGenerationIntegrationTest.cs (1)
29CSharpSyntaxTree.ParseText(Microsoft.CodeAnalysis.Text.SourceText.From(TestTagHelperDescriptors.Code, System.Text.Encoding.UTF8)),
Microsoft.AspNetCore.Razor.Test.Common (3)
Language\IntegrationTests\IntegrationTestBase.cs (2)
132var syntaxTree = (CSharpSyntaxTree)CSharpSyntaxTree.ParseText(Microsoft.CodeAnalysis.Text.SourceText.From(text, System.Text.Encoding.UTF8), CSharpParseOptions, path: filePath ?? string.Empty); 264(CSharpSyntaxTree)CSharpSyntaxTree.ParseText(csharpDocument.Text, CSharpParseOptions, path: code.CodeDocument.Source.FilePath ?? string.Empty),
Language\IntegrationTests\RazorIntegrationTestBase.cs (1)
441return (CSharpSyntaxTree)CSharpSyntaxTree.ParseText(text, parseOptions ?? CSharpParseOptions, path: path);
Microsoft.AspNetCore.Razor.Test.Common.Tooling (2)
Language\IntegrationTests\RazorToolingIntegrationTestBase.cs (1)
313return (CSharpSyntaxTree)CSharpSyntaxTree.ParseText(text, CSharpParseOptions, path: path);
ProjectSystem\TestDocumentSnapshot.cs (1)
53return new(CSharpSyntaxTree.ParseText(_codeDocument.GetCSharpSourceText(), cancellationToken: cancellationToken));
Microsoft.CodeAnalysis.CSharp (2)
Syntax\SyntaxFactory.cs (2)
1595/// <inheritdoc cref="CSharpSyntaxTree.ParseText(SourceText, CSharpParseOptions?, string, CancellationToken)"/> 1602return CSharpSyntaxTree.ParseText(text, (CSharpParseOptions?)options, path, cancellationToken);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\ParserRegressionTests.cs (1)
154CSharpSyntaxTree.ParseText(new RandomizedSourceText());
Syntax\SyntaxTreeTests.cs (1)
86SyntaxTreeFactoryKind.ParseText => CSharpSyntaxTree.ParseText(SourceText.From(source, Encoding.UTF8, SourceHashAlgorithm.Sha256), parseOptions),
Microsoft.CodeAnalysis.LanguageServer (1)
FileBasedPrograms\FileBasedProgramsProjectSystem.cs (1)
220var syntaxTree = CSharpSyntaxTree.ParseText(sourceText, options: parseOptions, cancellationToken: cancellationToken);
Microsoft.CodeAnalysis.Razor.Compiler (1)
SourceGenerators\RazorSourceGenerator.cs (1)
106return CSharpSyntaxTree.ParseText(generatedDeclarationText.Text, (CSharpParseOptions)parseOptions, cancellationToken: ct);
Microsoft.CodeAnalysis.Razor.UnitTests (1)
BaseTagHelperProducerTest.cs (1)
80return (CSharpSyntaxTree)CSharpSyntaxTree.ParseText(Microsoft.CodeAnalysis.Text.SourceText.From(text, System.Text.Encoding.UTF8), CSharpParseOptions);
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Formatting\Passes\CSharpFormattingPass.cs (1)
118var tree = CSharpSyntaxTree.ParseText(generatedCSharpText, cancellationToken: cancellationToken);
Microsoft.CodeAnalysis.Rebuild (1)
CSharpCompilationFactory.cs (1)
46=> CSharpSyntaxTree.ParseText(sourceText, ParseOptions, filePath);
Microsoft.CodeAnalysis.Test.Utilities (7)
Compilation\CompilationExtensions.cs (1)
514new[] { CSharpSyntaxTree.ParseText(SourceText.From(source, encoding: null, SourceHashAlgorithms.Default)) },
Mocks\Silverlight.cs (4)
88CSharpSyntaxTree.ParseText(SourceText.From(TestResources.NetFX.Minimal.mincorlib_cs)), 89CSharpSyntaxTree.ParseText(SourceText.From(corlibExtraCode)), 90CSharpSyntaxTree.ParseText(SourceText.From(assemblyAttributes)), 98syntaxTrees: [CSharpSyntaxTree.ParseText(SourceText.From(assemblyAttributes))],
Mocks\StdOle.cs (2)
75CSharpSyntaxTree.ParseText(SourceText.From(code)), 76CSharpSyntaxTree.ParseText(SourceText.From(assemblyAttributes))
Microsoft.CodeAnalysis.UnitTests (2)
AnalyzerAssemblyLoaderTests.cs (2)
1180[CSharpSyntaxTree.ParseText(SourceText.From(testCode, encoding: null, checksumAlgorithm: SourceHashAlgorithms.Default))], 1282[CSharpSyntaxTree.ParseText(SourceText.From(analyzerCode, encoding: null, checksumAlgorithm: SourceHashAlgorithms.Default))],
Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests (1)
RazorSourceGeneratorTests.cs (1)
1165.AddSyntaxTrees(CSharpSyntaxTree.ParseText(Microsoft.CodeAnalysis.Text.SourceText.From(@"