/third_party/typescript/src/services/formatting/ |
D | formattingContext.ts | 61 … const startLine = this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line; 62 … const endLine = this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line; 86 …const startLine = this.sourceFile.getLineAndCharacterOfPosition(node.getStart(this.sourceFile)).li… 87 const endLine = this.sourceFile.getLineAndCharacterOfPosition(node.getEnd()).line; 95 … const startLine = this.sourceFile.getLineAndCharacterOfPosition(openBrace.getEnd()).line; 96 …const endLine = this.sourceFile.getLineAndCharacterOfPosition(closeBrace.getStart(this.sourceFile)…
|
D | smartIndenter.ts | 53 const lineAtPosition = sourceFile.getLineAndCharacterOfPosition(position).line; 104 const previousLine = getLineAndCharacterOfPosition(sourceFile, position).line - 1; 105 …const commentStartLine = getLineAndCharacterOfPosition(sourceFile, enclosingCommentRange.pos).line; 174 const start = sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)); 258 …currentStart = useTrueStart ? sourceFile.getLineAndCharacterOfPosition(current.getStart(sourceFile… 267 return sourceFile.getLineAndCharacterOfPosition(startPos); 343 return sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)); 352 …const expressionOfCallExpressionEndLine = getLineAndCharacterOfPosition(sourceFile, expressionOfCa… 391 … const conditionEndLine = getLineAndCharacterOfPosition(sourceFile, parent.condition.end).line; 404 … const trueEndLine = getLineAndCharacterOfPosition(sourceFile, parent.whenTrue.end).line; [all …]
|
D | formatting.ts | 78 const line = sourceFile.getLineAndCharacterOfPosition(position).line; 331 const line = sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)).line; 420 …const startLine = sourceFile.getLineAndCharacterOfPosition(enclosingNode.getStart(sourceFile)).lin… 423 …undecoratedStartLine = sourceFile.getLineAndCharacterOfPosition(getNonDecoratorTokenPosOfNode(encl… 436 …item => processRange(item, sourceFile.getLineAndCharacterOfPosition(item.pos), enclosingNode, encl… 473 sourceFile.getLineAndCharacterOfPosition(tokenInfo.pos).line, 508 const startLine = sourceFile.getLineAndCharacterOfPosition(startPos).line; 725 const childStartLine = sourceFile.getLineAndCharacterOfPosition(childStartPos).line; 729 …undecoratedChildStartLine = sourceFile.getLineAndCharacterOfPosition(getNonDecoratorTokenPosOfNode… 829 … startLine = sourceFile.getLineAndCharacterOfPosition(tokenInfo.token.pos).line; [all …]
|
D | rules.ts | 852 …const startLine = context.sourceFile.getLineAndCharacterOfPosition(context.currentTokenSpan.pos).l… 853 const endLine = context.sourceFile.getLineAndCharacterOfPosition(nextTokenStart).line;
|
/third_party/typescript/tests/arkTSTest/ |
D | run.js | 76 … const { line, character } = realErrorItem.file.getLineAndCharacterOfPosition(realErrorItem.start); 201 … const { line, character } = realityInfo.file.getLineAndCharacterOfPosition(realityInfo.start) 216 … const { line, character } = realErrorItem.file.getLineAndCharacterOfPosition(realErrorItem.start) 255 … const { line, character } = realErrorItem.file.getLineAndCharacterOfPosition(realErrorItem.start) 278 … const { line, character } = realErrorItem.file.getLineAndCharacterOfPosition(realErrorItem.start)
|
/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | completionsIncomplete.ts | 172 const { line, character } = getLineAndCharacterOfPosition(file, file.text.length); 211 … const startLineCharacter = getLineAndCharacterOfPosition(file, file.text.length - n); 212 const endLineCharacter = getLineAndCharacterOfPosition(file, file.text.length); 241 const { line, character } = getLineAndCharacterOfPosition(file, file.text.length - 1);
|
/third_party/typescript/tests/baselines/reference/ |
D | APISample_compile.js | 34 var { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start!); 69 …var _a = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start), line = _a.line, characte…
|
D | APISample_linter.js | 60 let { line, character } = sourceFile.getLineAndCharacterOfPosition(node.getStart()); 118 …var _a = sourceFile.getLineAndCharacterOfPosition(node.getStart()), line = _a.line, character = _a…
|
D | APISample_watcher.js | 104 … let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start!); 191 …var _a = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start), line = _a.line, characte…
|
/third_party/typescript/src/services/ |
D | sourcemaps.ts | 126 return file.getLineAndCharacterOfPosition(position); 194 getLineAndCharacterOfPosition(pos: number) {
|
D | breakpoints.ts | 13 const lineOfPosition = sourceFile.getLineAndCharacterOfPosition(position).line; 14 …if (sourceFile.getLineAndCharacterOfPosition(tokenAtLocation.getStart(sourceFile)).line > lineOfPo… 23 …if (!preceding || sourceFile.getLineAndCharacterOfPosition(preceding.getEnd()).line !== lineOfPosi… 50 …if (node && lineOfPosition === sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile))…
|
D | types.ts | 101 getLineAndCharacterOfPosition(pos: number): LineAndCharacter; method 111 getLineAndCharacterOfPosition(pos: number): LineAndCharacter; method 115 getLineAndCharacterOfPosition(pos: number): LineAndCharacter; method
|
D | textChanges.ts | 1110 getLineAndCharacterOfPosition(pos) { constant 1111 return getLineAndCharacterOfPosition(this, pos); 1388 const commentLine = sourceFile.getLineAndCharacterOfPosition(range.pos).line; 1389 … const lastCommentEndLine = sourceFile.getLineAndCharacterOfPosition(lastComment.range.end).line; 1394 …if (firstNodeLine === undefined) firstNodeLine = sourceFile.getLineAndCharacterOfPosition(sourceFi… 1395 const commentEndLine = sourceFile.getLineAndCharacterOfPosition(range.end).line;
|
D | services.ts | 742 public getLineAndCharacterOfPosition(position: number): LineAndCharacter { 743 return getLineAndCharacterOfPosition(this, position); 755 const { line } = this.getLineAndCharacterOfPosition(pos); 933 public getLineAndCharacterOfPosition(pos: number): LineAndCharacter { 934 return getLineAndCharacterOfPosition(this, pos); 2209 firstLine: sourceFile.getLineAndCharacterOfPosition(textRange.pos).line, 2210 lastLine: sourceFile.getLineAndCharacterOfPosition(textRange.end).line
|
D | utilities.ts | 497 const line = sourceFile.getLineAndCharacterOfPosition(position).line; 2897 const startLine = sourceFile.getLineAndCharacterOfPosition(node.getEnd()).line; 2898 … const endLine = sourceFile.getLineAndCharacterOfPosition(nextToken.getStart(sourceFile)).line; 2933 …const lastTokenLine = getLineAndCharacterOfPosition(sourceFile, lastToken.getStart(sourceFile)).li… 2934 …const nextTokenLine = getLineAndCharacterOfPosition(sourceFile, getSpanOfTokenAtPosition(sourceFil…
|
/third_party/typescript/src/harness/ |
D | typeWriter.ts | 104 … const lineAndCharacter = this.currentSourceFile.getLineAndCharacterOfPosition(actualPos); 177 … const declLineAndCharacter = declSourceFile.getLineAndCharacterOfPosition(declaration.pos);
|
/third_party/typescript/tests/cases/compiler/ |
D | APISample_compile.ts | 37 var { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start!);
|
D | APISample_linter.ts | 63 let { line, character } = sourceFile.getLineAndCharacterOfPosition(node.getStart());
|
D | APISample_watcher.ts | 107 … let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start!);
|
/third_party/typescript/src/compiler/ |
D | tracing.ts | 181 start: indexFromOne(getLineAndCharacterOfPosition(file, node!.pos)), 182 end: indexFromOne(getLineAndCharacterOfPosition(file, node!.end)),
|
/third_party/typescript/src/services/codefixes/ |
D | disableJsDiagnostics.ts | 50 const { line: lineNumber } = getLineAndCharacterOfPosition(sourceFile, position);
|
/third_party/typescript/src/services/refactors/ |
D | extractType.ts | 191 …file && isTupleTypeNode(node) && (getLineAndCharacterOfPosition(file, node.pos).line === getLineAn…
|
/third_party/typescript/src/testRunner/unittests/ |
D | customTransforms.ts | 121 … getLineAndCharacterOfPosition: pos => computeLineAndCharacterOfPosition(lineMap, pos)
|
/third_party/typescript/src/linter/ArkTSLinter_1_1/ |
D | InteropTypescriptLinter.ts | 108 const startPos = this.sourceFile!.getLineAndCharacterOfPosition(startOffset);
|
/third_party/typescript/src/server/ |
D | session.ts | 75 start: convertToLocation(getLineAndCharacterOfPosition(info.file, info.start!)), 76 …end: convertToLocation(getLineAndCharacterOfPosition(info.file, info.start! + info.length!)), // T… 92 …const start = (diag.file && convertToLocation(getLineAndCharacterOfPosition(diag.file, diag.start!… 93 …const end = (diag.file && convertToLocation(getLineAndCharacterOfPosition(diag.file, diag.start! +… 1220 …startLocation: (d.file && convertToLocation(getLineAndCharacterOfPosition(d.file, d.start!)))!, //… 1221 …endLocation: (d.file && convertToLocation(getLineAndCharacterOfPosition(d.file, d.start! + d.lengt… 3484 …return isConfigFile(info) ? locationFromLineAndCharacter(info.getLineAndCharacterOfPosition(positi…
|