Home
last modified time | relevance | path

Searched refs:getLineAndCharacterOfPosition (Results 1 – 25 of 48) sorted by relevance

12

/third_party/typescript/src/services/formatting/
DformattingContext.ts61 … 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)…
DsmartIndenter.ts53 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 …]
Dformatting.ts78 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 …]
Drules.ts852 …const startLine = context.sourceFile.getLineAndCharacterOfPosition(context.currentTokenSpan.pos).l…
853 const endLine = context.sourceFile.getLineAndCharacterOfPosition(nextTokenStart).line;
/third_party/typescript/tests/baselines/reference/
DAPISample_compile.js34 var { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start!);
69 …var _a = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start), line = _a.line, characte…
DAPISample_linter.js60 let { line, character } = sourceFile.getLineAndCharacterOfPosition(node.getStart());
118 …var _a = sourceFile.getLineAndCharacterOfPosition(node.getStart()), line = _a.line, character = _a…
DAPISample_watcher.js104 … let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start!);
191 …var _a = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start), line = _a.line, characte…
/third_party/typescript/tests/arkTSTest/
Drun.js166 … const { line, character } = realityInfo.file.getLineAndCharacterOfPosition(realityInfo.start)
181 … const { line, character } = realErrorItem.file.getLineAndCharacterOfPosition(realErrorItem.start)
220 … const { line, character } = realErrorItem.file.getLineAndCharacterOfPosition(realErrorItem.start)
243 … const { line, character } = realErrorItem.file.getLineAndCharacterOfPosition(realErrorItem.start)
/third_party/typescript/src/testRunner/unittests/tsserver/
DcompletionsIncomplete.ts172 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/src/services/
Dsourcemaps.ts126 return file.getLineAndCharacterOfPosition(position);
194 getLineAndCharacterOfPosition(pos: number) {
Dbreakpoints.ts13 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))…
Dtypes.ts101 getLineAndCharacterOfPosition(pos: number): LineAndCharacter; method
111 getLineAndCharacterOfPosition(pos: number): LineAndCharacter; method
115 getLineAndCharacterOfPosition(pos: number): LineAndCharacter; method
DtextChanges.ts1110 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;
Dservices.ts742 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);
2205 firstLine: sourceFile.getLineAndCharacterOfPosition(textRange.pos).line,
2206 lastLine: sourceFile.getLineAndCharacterOfPosition(textRange.end).line
Dutilities.ts497 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…
Dcompletions.ts1266 getLineAndCharacterOfPosition(pos: number) {
1267 return getLineAndCharacterOfPosition(this, pos);
4138 const tokenLine = file.getLineAndCharacterOfPosition(contextToken.end).line;
4139 const currentLine = file.getLineAndCharacterOfPosition(position).line;
4262 …if (getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line !== getLineAndCharacterO…
/third_party/typescript/src/harness/
DtypeWriter.ts104 … const lineAndCharacter = this.currentSourceFile.getLineAndCharacterOfPosition(actualPos);
177 … const declLineAndCharacter = declSourceFile.getLineAndCharacterOfPosition(declaration.pos);
/third_party/typescript/tests/cases/compiler/
DAPISample_compile.ts37 var { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start!);
DAPISample_linter.ts63 let { line, character } = sourceFile.getLineAndCharacterOfPosition(node.getStart());
DAPISample_watcher.ts107 … let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start!);
/third_party/typescript/src/compiler/
Dtracing.ts181 start: indexFromOne(getLineAndCharacterOfPosition(file, node!.pos)),
182 end: indexFromOne(getLineAndCharacterOfPosition(file, node!.end)),
/third_party/typescript/src/services/codefixes/
DdisableJsDiagnostics.ts50 const { line: lineNumber } = getLineAndCharacterOfPosition(sourceFile, position);
/third_party/typescript/src/services/refactors/
DextractType.ts191 …file && isTupleTypeNode(node) && (getLineAndCharacterOfPosition(file, node.pos).line === getLineAn…
/third_party/typescript/src/testRunner/unittests/
DcustomTransforms.ts121getLineAndCharacterOfPosition: pos => computeLineAndCharacterOfPosition(lineMap, pos)
/third_party/typescript/src/server/
Dsession.ts75 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…

12