31 references to SemanticSearchUtilities
Microsoft.CodeAnalysis.Features (31)
SemanticSearch\AbstractSemanticSearchService.cs (8)
76
var metadataReferences =
SemanticSearchUtilities
.GetMetadataReferences(metadataService, referenceAssembliesDir);
77
var queryText =
SemanticSearchUtilities
.CreateSourceText(query);
383
error ??= string.Format(FeaturesResources.The_query_does_not_specify_0_method_or_top_level_function,
SemanticSearchUtilities
.FindMethodName);
395
if (candidate.Name ==
SemanticSearchUtilities
.FindMethodName ||
396
allowLocalFunction && candidate.Name.StartsWith($"<{WellKnownMemberNames.TopLevelStatementsEntryPointMethodName}>g__{
SemanticSearchUtilities
.FindMethodName}|"))
404
error = string.Format(FeaturesResources.The_query_does_not_specify_0_method_or_top_level_function,
SemanticSearchUtilities
.FindMethodName);
411
error = string.Format(FeaturesResources.Method_0_must_be_static_and_non_generic,
SemanticSearchUtilities
.FindMethodName);
422
error = string.Format(FeaturesResources.Method_0_must_have_a_single_parameter_of_type_1_and_return_2,
SemanticSearchUtilities
.FindMethodName, nameof(Compilation));
SemanticSearch\SemanticSearchDocumentSupportsFeatureService.cs (5)
18
=>
SemanticSearchUtilities
.IsQueryDocument(document);
21
=>
SemanticSearchUtilities
.IsQueryDocument(document);
24
=>
SemanticSearchUtilities
.IsQueryDocument(document);
27
=>
SemanticSearchUtilities
.IsQueryDocument(document);
30
=>
SemanticSearchUtilities
.IsQueryDocument(document);
SemanticSearch\SemanticSearchUtilities.cs (1)
27
private static readonly string s_thisAssemblyDirectory = Path.GetDirectoryName(typeof(
SemanticSearchUtilities
).Assembly.Location!)!;
SemanticSearch\SemanticSearchWorkspace.cs (17)
38
newText =
SemanticSearchUtilities
.CreateSourceText(query);
39
return oldSolution.WithDocumentText(
SemanticSearchUtilities
.GetQueryDocumentId(oldSolution), newText);
42
newText =
SemanticSearchUtilities
.CreateSourceText(query ?? config.Query);
46
.AddProject(name:
SemanticSearchUtilities
.QueryProjectName, assemblyName:
SemanticSearchUtilities
.QueryProjectName, config.Language)
49
.AddMetadataReferences(
SemanticSearchUtilities
.GetMetadataReferences(metadataService,
SemanticSearchUtilities
.ReferenceAssembliesDirectory))
50
.AddDocument(name:
SemanticSearchUtilities
.QueryDocumentName, newText, filePath:
SemanticSearchUtilities
.GetDocumentFilePath(config.Language)).Project
51
.AddDocument(name:
SemanticSearchUtilities
.GlobalUsingsDocumentName,
SemanticSearchUtilities
.CreateSourceText(config.GlobalUsings), filePath: null).Project
52
.AddAnalyzerConfigDocument(name:
SemanticSearchUtilities
.ConfigDocumentName,
SemanticSearchUtilities
.CreateSourceText(config.EditorConfig), filePath:
SemanticSearchUtilities
.GetConfigDocumentFilePath()).Project.Solution;
56
? (WorkspaceChangeKind.DocumentChanged, projectId: null, documentId:
SemanticSearchUtilities
.GetQueryDocumentId(newSolution))
57
: (WorkspaceChangeKind.ProjectAdded, projectId:
SemanticSearchUtilities
.GetQueryProjectId(newSolution), documentId: null),
62
var queryDocument =
SemanticSearchUtilities
.GetQueryDocument(newSolution);