6 overrides of GetText
Microsoft.Analyzers.Extra.Tests (1)
Resources\FileVisibleToAnalyzer.cs (1)
26public override SourceText? GetText(CancellationToken cancellationToken = default) => SourceText.From(File.ReadAllText(Path));
Microsoft.Analyzers.Local.Tests (1)
Resources\FileVisibleToAnalyzer.cs (1)
26public override SourceText? GetText(CancellationToken cancellationToken = default) => SourceText.From(File.ReadAllText(Path));
Microsoft.CodeAnalysis (1)
AdditionalTextFile.cs (1)
53public override SourceText? GetText(CancellationToken cancellationToken = default) => _text.Value;
Microsoft.CodeAnalysis.Test.Utilities (2)
Mocks\TestAdditionalText.cs (1)
29public override SourceText? GetText(CancellationToken cancellationToken = default) => _text;
SourceGeneration\TestGenerators.cs (1)
150public override SourceText GetText(CancellationToken cancellationToken = default) => _content;
System.Windows.Forms.Analyzers.CSharp.Tests (1)
TestAdditionalText.cs (1)
33public override SourceText GetText(CancellationToken cancellationToken = default) => _text;
32 references to GetText
CSharpSyntaxGenerator (1)
SourceGenerator.cs (1)
64var inputText = input.GetText();
Microsoft.Analyzers.Local (1)
ApiLifecycle\ModelLoader.cs (1)
49publicInterface = assemblyBaselineFile.GetText()?.ToString();
Microsoft.CodeAnalysis (2)
Compilation\DeterministicKeyBuilder.cs (1)
166WriteSourceText(writer, additionalText.GetText(cancellationToken));
DiagnosticAnalyzer\AdditionalTextComparer.cs (1)
63return text.GetText();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
SourceGeneration\GeneratorDriverFuzzTests.cs (6)
87var provider1 = provider.Select((additionalText, _) => (AdditionalText)new InMemoryAdditionalText(additionalText.Path, additionalText.GetText()!.ToString() switch 164var provider1 = provider.Where(additionalText => additionalText.GetText()!.ToString() is var textString 355context.AddSource(((InMemoryAdditionalText)text).Path, ((InMemoryAdditionalText)text).GetText()!.ToString()); 433new InMemoryAdditionalText("{text.Path}", "{text.GetText()}"), 452new InMemoryAdditionalText("{text.Path}", "{text.GetText()}"), 553}.Select(logic => (AdditionalText)new InMemoryAdditionalText(hintNameProvider.GetNextHintName(), additionalText.GetText()!.ToString() switch
SourceGeneration\GeneratorDriverTests.cs (1)
2894var contents = texts.Select((t, ct) => t?.GetText(ct)?.ToString()).WithTrackingName("Content");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeFixes\CodeFixServiceTests.cs (1)
922var text = context.AdditionalFile.GetText(context.CancellationToken);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
782var actualText = analyzer.CallbackFilterFile.GetText().ToString();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\AdditionalFileDiagnosticsTests.vb (1)
84Dim text = item.GetText()
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
428Generate(additionalFile.GetText()!.ToString(), PathUtilities.GetFileName(additionalFile.Path));
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
96return "// " + additionalText.GetText(ct)!.ToString();
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
2659var text = context.AdditionalFile.GetText();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
GenerateFileForEachAdditionalFileWithContentsCommented.cs (1)
29var sourceText = file.GetText(cancellationToken);
Microsoft.DotNet.CodeAnalysis (3)
Analyzers\BaseAnalyzer.cs (1)
27foreach (var line in configFile.GetText().Lines)
Analyzers\MembersMustExistAnalyzer.cs (1)
71SourceText fileContents = additionalFile.GetText();
Analyzers\PinvokeAnalyzer.cs (1)
76SourceText fileContents = additionalFile.GetText();
Microsoft.ML.AutoML.SourceGenerator (10)
EstimatorTypeGenerator.cs (3)
27var json = text.GetText().ToString(); 36.SelectMany(file => Utils.GetEstimatorsFromJson(file.GetText().ToString()).Estimators, (text, estimator) => (estimator.FunctionName, estimator.EstimatorTypes)) 41.SelectMany(file => Utils.GetEstimatorsFromJson(file.GetText().ToString()).Estimators, (text, estimator) => (estimator.FunctionName, estimator.EstimatorTypes))
SearchSpaceGenerator.cs (2)
24var json = text.GetText().ToString(); 33.Select(f => f.GetText().ToString())
SweepableEstimatorFactoryGenerator.cs (3)
24var json = text.GetText().ToString(); 33.SelectMany(file => Utils.GetEstimatorsFromJson(file.GetText().ToString()).Estimators, (text, estimator) => (estimator.FunctionName, estimator.EstimatorTypes, estimator.SearchOption)) 38.SelectMany(file => Utils.GetEstimatorsFromJson(file.GetText().ToString()).Estimators, (text, estimator) => (estimator.FunctionName, estimator.EstimatorTypes, estimator.SearchOption))
SweepableEstimatorGenerator.cs (2)
23var json = text.GetText().ToString(); 32.SelectMany(file => Utils.GetEstimatorsFromJson(file.GetText().ToString()).Estimators)
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (1)
38SourceText? appManifestXml = appManifest.GetText(context.CancellationToken);