Home
last modified time | relevance | path

Searched refs:lineMap (Results 1 – 25 of 27) sorted by relevance

12

/third_party/typescript/src/testRunner/unittests/tsserver/
DversionCache.ts96 let lineMap: number[]; variable
105 ({ lines, lineMap } = server.LineIndex.linesFromText(testContent));
120 lineMap = undefined!;
132 validateEditAtPosition(lineMap[lineMap.length - 2], lines[lines.length - 1].length, "");
206 let lineMap: number[]; variable
217 ({ lines, lineMap } = server.LineIndex.linesFromText(testContent));
256 lineMap = undefined!;
314 const lac = computeLineAndCharacterOfPosition(lineMap, rsa[i]);
323 assert.equal(lineIndex.absolutePositionOfStartOfLine(j + 1), lineMap[j]);
DtextStorage.ts27 const lineMap = computeLineStarts(f.content); constant
29 for (let line = 0; line < lineMap.length; line++) {
30 const start = lineMap[line];
31 const end = line === lineMap.length - 1 ? f.path.length : lineMap[line + 1];
/third_party/typescript/src/harness/
Dclient.ts55 let lineMap = this.lineMaps.get(fileName);
56 if (!lineMap) {
57lineMap = computeLineStarts(getSnapshotText(this.host.getScriptSnapshot(fileName)!));
58 this.lineMaps.set(fileName, lineMap);
60 return lineMap;
63 …private lineOffsetToPosition(fileName: string, lineOffset: protocol.Location, lineMap?: number[]):…
64 lineMap = lineMap || this.getLineMap(fileName);
65 … return computePositionOfLineAndCharacter(lineMap, lineOffset.line - 1, lineOffset.offset - 1);
517 …Items(items: protocol.NavigationBarItem[] | undefined, fileName: string, lineMap: number[]): Navig…
526 spans: item.spans.map(span => this.decodeSpan(span, fileName, lineMap)),
[all …]
DsourceMapRecorder.ts156 function getTextOfLine(line: number, lineMap: readonly number[], code: string) {
157 const startPos = lineMap[line];
158 const endPos = lineMap[line + 1];
DharnessLanguageService.ts18 private lineMap: number[] | undefined; property in Harness.LanguageService.ScriptInfo
26 this.lineMap = undefined;
30 return this.lineMap || (this.lineMap = ts.computeLineStarts(this.content));
/third_party/typescript/src/server/
DscriptInfo.ts26 private lineMap: number[] | undefined; property in ts.server.TextStorage
80 this.lineMap = undefined;
90 this.lineMap = undefined;
178 const lineMap = this.getLineMap(); constant
179 const start = lineMap[line]; // -1 since line is 1-based
180 const end = line + 1 < lineMap.length ? lineMap[line + 1] : this.text!.length; constant
258 return this.lineMap || (this.lineMap = computeLineStarts(this.getOrLoadText()));
268 const lineMap = this.getLineMap(); constant
269 return getLineInfo(this.text!, lineMap);
DscriptVersionCache.ts542 const lineMap = computeLineStarts(text); constant
544 if (lineMap.length === 0) {
545 return { lines: [] as string[], lineMap };
547 const lines = new Array(lineMap.length) as string[];
548 const lc = lineMap.length - 1;
550 lines[lmi] = text.substring(lineMap[lmi], lineMap[lmi + 1]);
553 const endText = text.substring(lineMap[lc]);
560 return { lines, lineMap };
/third_party/typescript/src/testRunner/unittests/
DcustomTransforms.ts115 const lineMap = computeLineStarts(text); constant
120 lineMap,
121 … getLineAndCharacterOfPosition: pos => computeLineAndCharacterOfPosition(lineMap, pos)
/third_party/typescript/tests/baselines/reference/tsbuild/outfile-concat/
DstripInternal-baseline-when-internal-is-inside-another-internal.js25 lineMap?: ReadonlyArray<number>;
661 lineMap?: ReadonlyArray<number>;
753 >>> lineMap?: ReadonlyArray<number>;
766 2 > lineMap
1129 > lineMap?: ReadonlyArray<number>;
1301 lineMap?: ReadonlyArray<number>;
1454 > lineMap?: ReadonlyArray<number>;
1794 > lineMap?: ReadonlyArray<number>;
/third_party/typescript/src/services/
Dsourcemaps.ts190 … function createSourceFileLike(text: string, lineMap?: SourceFileLike["lineMap"]): SourceFileLike {
193 lineMap,
Dservices.ts691 public lineMap!: readonly number[];
930 lineMap!: number[];
/third_party/typescript/src/compiler/
Dutilities.ts4531 export function getLineOfLocalPositionFromLineMap(lineMap: readonly number[], pos: number) {
4532 return computeLineOfPosition(lineMap, pos);
4681 …export function emitNewLineBeforeLeadingComments(lineMap: readonly number[], writer: EmitTextWrite…
4682 emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, node.pos, leadingComments);
4685 …export function emitNewLineBeforeLeadingCommentsOfPosition(lineMap: readonly number[], writer: Emi…
4688 …getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, lea…
4693 …export function emitNewLineBeforeLeadingCommentOfPosition(lineMap: readonly number[], writer: Emit…
4696 …getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, com…
4703 lineMap: readonly number[],
4709 …writeComment: (text: string, lineMap: readonly number[], writer: EmitTextWriter, commentPos: numbe…
[all …]
Dscanner.ts433 return sourceFile.lineMap || (sourceFile.lineMap = computeLineStarts(sourceFile.text));
Demitter.ts5632 …const lineMap = comment.kind === SyntaxKind.MultiLineCommentTrivia ? computeLineStarts(text) : und… constant
5633 writeCommentRange(text, lineMap!, writer, 0, text.length, newLine);
5875 …function emitComment(text: string, lineMap: number[], writer: EmitTextWriter, commentPos: number, …
5878 writeCommentRange(text, lineMap, writer, commentPos, commentEnd, newLine);
Dtypes.ts3981 lineMap?: readonly number[];
4112 /* @internal */ lineMap: readonly number[];
7508 /* @internal */ lineMap: readonly number[]; property
/third_party/typescript/tests/baselines/reference/
DparserRealSource11.js1105 constructor (public filename: string, public lineMap: number[], public unitIndex) { }
3438 function LocationInfo(filename, lineMap, unitIndex) { argument
3440 this.lineMap = lineMap;
Dparserharness.js1738 assert.is(line <= script.locationInfo.lineMap.length);
3582 assert.is(line <= script.locationInfo.lineMap.length);
Dparserharness.types7113 assert.is(line <= script.locationInfo.lineMap.length);
7114 >assert.is(line <= script.locationInfo.lineMap.length) : any
7118 >line <= script.locationInfo.lineMap.length : boolean
7120 >script.locationInfo.lineMap.length : any
7121 >script.locationInfo.lineMap : any
7125 >lineMap : any
Dparserharness.errors.txt2048 assert.is(line <= script.locationInfo.lineMap.length);
DparserRealSource11.symbols3264 constructor (public filename: string, public lineMap: number[], public unitIndex) { }
3266 >lineMap : Symbol(LocationInfo.lineMap, Decl(parserRealSource11.ts, 1103, 45))
DparserRealSource11.types5026 constructor (public filename: string, public lineMap: number[], public unitIndex) { }
5028 >lineMap : number[]
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/RealWorld/
Dparserharness.ts1738 assert.is(line <= script.locationInfo.lineMap.length);
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/
DparserRealSource11.ts1104 constructor (public filename: string, public lineMap: number[], public unitIndex) { } property in LocationInfo
/third_party/typescript/lib/
Dtsc.js7518 return sourceFile.lineMap || (sourceFile.lineMap = computeLineStarts(sourceFile.text));
14772 function getLineOfLocalPositionFromLineMap(lineMap, pos) { argument
14773 return ts.computeLineOfPosition(lineMap, pos);
14902 function emitNewLineBeforeLeadingComments(lineMap, writer, node, leadingComments) { argument
14903 emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, node.pos, leadingComments);
14906 function emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, pos, leadingComments) { argument
14908 …getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, lea…
14913 function emitNewLineBeforeLeadingCommentOfPosition(lineMap, writer, pos, commentPos) { argument
14915 …getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, com…
14920 …function emitComments(text, lineMap, writer, comments, leadingSeparator, trailingSeparator, newLin… argument
[all …]
DtypingsInstaller.js10441 return sourceFile.lineMap || (sourceFile.lineMap = computeLineStarts(sourceFile.text));
18801 function getLineOfLocalPositionFromLineMap(lineMap, pos) { argument
18802 return ts.computeLineOfPosition(lineMap, pos);
18948 function emitNewLineBeforeLeadingComments(lineMap, writer, node, leadingComments) { argument
18949 emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, node.pos, leadingComments);
18952 function emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, pos, leadingComments) { argument
18955 …getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, lea…
18960 function emitNewLineBeforeLeadingCommentOfPosition(lineMap, writer, pos, commentPos) { argument
18963 …getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, com…
18968 …function emitComments(text, lineMap, writer, comments, leadingSeparator, trailingSeparator, newLin… argument
[all …]

12