/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | versionCache.ts | 96 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]);
|
D | textStorage.ts | 27 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/ |
D | client.ts | 55 let lineMap = this.lineMaps.get(fileName); 56 if (!lineMap) { 57 … lineMap = 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 …]
|
D | sourceMapRecorder.ts | 156 function getTextOfLine(line: number, lineMap: readonly number[], code: string) { 157 const startPos = lineMap[line]; 158 const endPos = lineMap[line + 1];
|
D | harnessLanguageService.ts | 18 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/ |
D | scriptInfo.ts | 26 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);
|
D | scriptVersionCache.ts | 542 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/ |
D | customTransforms.ts | 115 const lineMap = computeLineStarts(text); constant 120 lineMap, 121 … getLineAndCharacterOfPosition: pos => computeLineAndCharacterOfPosition(lineMap, pos)
|
/third_party/typescript/tests/baselines/reference/tsbuild/outfile-concat/ |
D | stripInternal-baseline-when-internal-is-inside-another-internal.js | 25 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/ |
D | sourcemaps.ts | 190 … function createSourceFileLike(text: string, lineMap?: SourceFileLike["lineMap"]): SourceFileLike { 193 lineMap,
|
D | services.ts | 691 public lineMap!: readonly number[]; 930 lineMap!: number[];
|
/third_party/typescript/src/compiler/ |
D | utilities.ts | 4531 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 …]
|
D | scanner.ts | 433 return sourceFile.lineMap || (sourceFile.lineMap = computeLineStarts(sourceFile.text));
|
D | emitter.ts | 5632 …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);
|
D | types.ts | 3981 lineMap?: readonly number[]; 4112 /* @internal */ lineMap: readonly number[]; 7508 /* @internal */ lineMap: readonly number[]; property
|
/third_party/typescript/tests/baselines/reference/ |
D | parserRealSource11.js | 1105 constructor (public filename: string, public lineMap: number[], public unitIndex) { } 3438 function LocationInfo(filename, lineMap, unitIndex) { argument 3440 this.lineMap = lineMap;
|
D | parserharness.js | 1738 assert.is(line <= script.locationInfo.lineMap.length); 3582 assert.is(line <= script.locationInfo.lineMap.length);
|
D | parserharness.types | 7113 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
|
D | parserharness.errors.txt | 2048 assert.is(line <= script.locationInfo.lineMap.length);
|
D | parserRealSource11.symbols | 3264 constructor (public filename: string, public lineMap: number[], public unitIndex) { } 3266 >lineMap : Symbol(LocationInfo.lineMap, Decl(parserRealSource11.ts, 1103, 45))
|
D | parserRealSource11.types | 5026 constructor (public filename: string, public lineMap: number[], public unitIndex) { } 5028 >lineMap : number[]
|
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/RealWorld/ |
D | parserharness.ts | 1738 assert.is(line <= script.locationInfo.lineMap.length);
|
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/ |
D | parserRealSource11.ts | 1104 constructor (public filename: string, public lineMap: number[], public unitIndex) { } property in LocationInfo
|
/third_party/typescript/lib/ |
D | tsc.js | 7518 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 …]
|
D | typingsInstaller.js | 10441 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 …]
|