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