23 references to Parse
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\InterceptorsTests.cs (4)
38private static readonly SyntaxTree s_attributesTree = CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, RegularWithInterceptors); 166var source = CSharpTestSource.Parse(""" 182var interceptors = CSharpTestSource.Parse($$""" 194var attributesTree = CSharpTestSource.Parse(s_attributesSource.text, s_attributesSource.path, options: options);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Source\FileModifierTests.cs (2)
832var testSource1 = CSharpTestSource.Parse(source, Path.Combine(root1, "code.cs")); 833var testSource2 = CSharpTestSource.Parse(source, Path.Combine(root2, "code.cs"));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
CSharpTestBase.cs (1)
1082=> CSharpTestSource.Parse(text, filename, options, encoding, checksumAlgorithm);
CSharpTestSource.cs (2)
51return new[] { Parse(source, path: sourceFileName, parseOptions) }; 60return sources.Select(source => Parse(source.Source, source.FileName, parseOptions)).ToArray();
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (1)
63var tree = CSharpTestSource.Parse(source, path: "/a/c.cs", options: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), checksumAlgorithm: SourceHashAlgorithm.Sha1);
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
CSharpDeterministicKeyBuilderTests.cs (1)
77CSharpTestSource.Parse(@"System.Console.WriteLine(""Hello World"");", checksumAlgorithm: SourceHashAlgorithm.Sha1),
Microsoft.CodeAnalysis.UnitTests (9)
Analyzers\AnalyzerFileReferenceTests.cs (1)
485new[] { CSharpTestSource.Parse(generatorSource) },
Diagnostics\OperationTests.cs (1)
274var tree = CSharpTestSource.Parse(source);
Diagnostics\SuppressMessageAttributeCompilerTests.cs (2)
60syntaxTrees: new[] { CSharpTestSource.Parse(unconditionalSuppressMessageDef) }, 74CSharpTestSource.Parse(source, path: fileName) :
Diagnostics\SuppressMessageTargetSymbolResolverTests.cs (1)
1456CSharpTestSource.Parse(source, path: fileName) :
GivesAccessTo.cs (2)
22var csharpTree = CSharpTestSource.Parse(@" 29var csharpTree2 = CSharpTestSource.Parse(@"
IsSymbolAccessibleWithinTests.cs (1)
23var csharpTree = CSharpTestSource.Parse("class A { }");
MetadataReferences\MetadataReferenceTests.cs (1)
572syntaxTrees: new[] { CSharpTestSource.Parse("class C : System.Collections.ArrayList { }") },
VBCSCompiler.UnitTests (3)
AnalyzerConsistencyCheckerTests.cs (3)
55? new[] { CSharpTestSource.Parse(source) } 56: new[] { CSharpTestSource.Parse(source), CSharpTestSource.Parse(extraSource) };