public virtual EnvDTE.TextPoint GetEndPoint(EnvDTE.vsCMPart part) { var point = CodeModelService.GetEndPoint(LookupNode(), part); if (point == null) { return(null); } return(FileCodeModel.TextManagerAdapter.CreateTextPoint(FileCodeModel, point.Value)); }
public virtual EnvDTE.TextPoint GetEndPoint(EnvDTE.vsCMPart part) { var options = State.ThreadingContext.JoinableTaskFactory.Run(() => GetDocument().GetOptionsAsync(CancellationToken.None)); var point = CodeModelService.GetEndPoint(LookupNode(), options, part); if (point == null) { return(null); } return(FileCodeModel.TextManagerAdapter.CreateTextPoint(FileCodeModel, point.Value)); }
public virtual EnvDTE.TextPoint GetStartPoint(EnvDTE.vsCMPart part) { var options = GetLineFormattingOptions(); var point = CodeModelService.GetStartPoint(LookupNode(), options, part); if (point == null) { return(null); } return(FileCodeModel.TextManagerAdapter.CreateTextPoint(FileCodeModel, point.Value)); }
public virtual EnvDTE.TextPoint GetEndPoint(EnvDTE.vsCMPart part) { var options = GetDocument().GetOptionsAsync(CancellationToken.None).WaitAndGetResult_CodeModel(CancellationToken.None); var point = CodeModelService.GetEndPoint(LookupNode(), options, part); if (point == null) { return(null); } return(FileCodeModel.TextManagerAdapter.CreateTextPoint(FileCodeModel, point.Value)); }
protected abstract VirtualTreePoint?GetEndPoint(SourceText text, SyntaxNode node, EnvDTE.vsCMPart part);
public EnvDTE.TextPoint GetStartPoint(EnvDTE.vsCMPart part) { throw Exceptions.ThrowEFail(); }
protected abstract VirtualTreePoint?GetStartPoint(SourceText text, OptionSet options, SyntaxNode node, EnvDTE.vsCMPart part);
protected abstract VirtualTreePoint?GetEndPoint(SourceText text, LineFormattingOptions options, SyntaxNode node, EnvDTE.vsCMPart part);
public EnvDTE.TextPoint GetEndPoint(EnvDTE.vsCMPart part) => throw Exceptions.ThrowEFail();