1 | import { TextDocument } from 'vscode-languageserver-textdocument';
|
2 | import { Range } from 'vscode-languageserver-types';
|
3 | import { Line } from './line';
|
4 | export declare class Comment extends Line {
|
5 | constructor(document: TextDocument, range: Range);
|
6 | toString(): string;
|
7 | /**
|
8 | * Returns the content of this comment. This excludes leading and
|
9 | * trailing whitespace as well as the # symbol. If the comment only
|
10 | * consists of whitespace, the empty string will be returned.
|
11 | */
|
12 | getContent(): string;
|
13 | /**
|
14 | * Returns a range that includes the content of the comment
|
15 | * excluding any leading and trailing whitespace as well as the #
|
16 | * symbol. May return null if the comment only consists of whitespace
|
17 | * characters.
|
18 | */
|
19 | getContentRange(): Range | null;
|
20 | }
|