44 */
55export interface CaretPosition {
66 /** start at 1 */
7- lineNumber : number ;
7+ readonly lineNumber : number ;
88 /** start at 1 */
9- column : number ;
9+ readonly column : number ;
1010}
1111
1212/**
@@ -45,23 +45,23 @@ export enum SyntaxContextType {
4545
4646export interface WordRange {
4747 /** content of word */
48- text : string ;
48+ readonly text : string ;
4949 /** start at 0 */
50- startIndex : number ;
51- stopIndex : number ;
50+ readonly startIndex : number ;
51+ readonly stopIndex : number ;
5252 /** start at 1 */
53- line : number ;
53+ readonly line : number ;
5454 /** start at 1 */
55- startColumn : number ;
56- stopColumn : number ;
55+ readonly startColumn : number ;
56+ readonly stopColumn : number ;
5757}
5858
5959/**
6060 * Suggested information analyzed from the input
6161 */
6262export interface SyntaxSuggestion < T = WordRange > {
63- syntaxContextType : SyntaxContextType ;
64- wordRanges : T [ ] ;
63+ readonly syntaxContextType : SyntaxContextType ;
64+ readonly wordRanges : T [ ] ;
6565}
6666
6767/**
@@ -71,22 +71,22 @@ export interface Suggestions<T = WordRange> {
7171 /**
7272 * Suggestions about syntax
7373 */
74- syntax : SyntaxSuggestion < T > [ ] ;
74+ readonly syntax : SyntaxSuggestion < T > [ ] ;
7575 /**
7676 * Suggestions about keywords
7777 */
78- keywords : string [ ] ;
78+ readonly keywords : string [ ] ;
7979}
8080
8181export interface TextSlice {
8282 /** start at 0 */
83- startIndex : number ;
84- endIndex : number ;
83+ readonly startIndex : number ;
84+ readonly endIndex : number ;
8585 /** start at 1 */
86- startLine : number ;
87- endLine : number ;
86+ readonly startLine : number ;
87+ readonly endLine : number ;
8888 /** start at 1 */
89- startColumn : number ;
90- endColumn : number ;
91- text : string ;
89+ readonly startColumn : number ;
90+ readonly endColumn : number ;
91+ readonly text : string ;
9292}
0 commit comments