31 references to SemanticSearchUtilities
Microsoft.CodeAnalysis.Features (31)
SemanticSearch\AbstractSemanticSearchService.cs (8)
76var metadataReferences = SemanticSearchUtilities.GetMetadataReferences(metadataService, referenceAssembliesDir); 77var queryText = SemanticSearchUtilities.CreateSourceText(query); 383error ??= string.Format(FeaturesResources.The_query_does_not_specify_0_method_or_top_level_function, SemanticSearchUtilities.FindMethodName); 395if (candidate.Name == SemanticSearchUtilities.FindMethodName || 396allowLocalFunction && candidate.Name.StartsWith($"<{WellKnownMemberNames.TopLevelStatementsEntryPointMethodName}>g__{SemanticSearchUtilities.FindMethodName}|")) 404error = string.Format(FeaturesResources.The_query_does_not_specify_0_method_or_top_level_function, SemanticSearchUtilities.FindMethodName); 411error = string.Format(FeaturesResources.Method_0_must_be_static_and_non_generic, SemanticSearchUtilities.FindMethodName); 422error = 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)
27private static readonly string s_thisAssemblyDirectory = Path.GetDirectoryName(typeof(SemanticSearchUtilities).Assembly.Location!)!;
SemanticSearch\SemanticSearchWorkspace.cs (17)
38newText = SemanticSearchUtilities.CreateSourceText(query); 39return oldSolution.WithDocumentText(SemanticSearchUtilities.GetQueryDocumentId(oldSolution), newText); 42newText = 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), 62var queryDocument = SemanticSearchUtilities.GetQueryDocument(newSolution);