public async System.Threading.Tasks.Task AnalyzeAndUpdateSingleAsync(Document document) { var codeResult = await CodeFileAnalyzer.BuildFromDocumentAsync(document); CodeQueries.UpdateStatmentForFileWihoutKey(new List <List <CSharpQuery> > { codeResult.Queries }); foreach (var generic in codeResult.Generics) { await GenericMethods.UpdateAsync(generic.NodeInformation.MethodInfo, generic); } OnStoreChangeHandler(ChangedFileTypeFlag.CSharp); }
public void AnalyzeAndUpdateSingle(Document document) { var codeResult = ThreadHelper.JoinableTaskFactory.Run(async() => await CodeFileAnalyzer.BuildFromDocumentAsync(document)); CodeQueries.UpdateStatmentForFileWihoutKey(new List <List <CSharpQuery> > { codeResult.Queries }); foreach (var generic in codeResult.Generics) { GenericMethods.Update(generic.NodeInformation.MethodInfo, generic); } OnStoreChangeHandler(ChangedFileTypeFlag.CSharp); }