Searched refs:TextRangeWithKind (Results 1 – 5 of 5) sorted by relevance
/third_party/typescript/src/services/formatting/ |
D | formattingContext.ts | 13 public currentTokenSpan!: TextRangeWithKind; 14 public nextTokenSpan!: TextRangeWithKind; 28 …public updateContext(currentRange: TextRangeWithKind, currentTokenParent: Node, nextRange: TextRan…
|
D | formatting.ts | 9 export interface TextRangeWithKind<T extends SyntaxKind = SyntaxKind> extends TextRange { interface 13 export type TextRangeWithTriviaKind = TextRangeWithKind<TriviaSyntaxKind>; 17 token: TextRangeWithKind; 21 …eTextRangeWithKind<T extends SyntaxKind>(pos: number, end: number, kind: T): TextRangeWithKind<T> { 22 const textRangeWithKind: TextRangeWithKind<T> = { pos, end, kind }; 69 getDelta(child: TextRangeWithKind): number; 408 let previousRange: TextRangeWithKind; 523 node: TextRangeWithKind, 661 function getDelta(child: TextRangeWithKind) { 946 trivia: TextRangeWithKind[], [all …]
|
D | smartIndenter.ts | 356 … childStartsOnTheSameLineWithElseInIfStatement(parent: Node, child: TextRangeWithKind, childStartL… 389 …childIsUnindentedBranchOfConditionalExpression(parent: Node, child: TextRangeWithKind, childStartL… 411 …ion argumentStartsOnSameLineAsPreviousArgument(parent: Node, child: TextRangeWithKind, childStartL… 581 …eWillIndentChild(settings: FormatCodeSettings, parent: TextRangeWithKind, child: TextRangeWithKind… 684 … function isControlFlowEndingStatement(kind: SyntaxKind, parent: TextRangeWithKind): boolean { 700 …unction shouldIndentChildNode(settings: FormatCodeSettings, parent: TextRangeWithKind, child?: Nod… 705 function rangeIsOnOneLine(sourceFile: SourceFileLike, range: TextRangeWithKind) {
|
D | formattingScanner.ts | 12 readEOFTokenRange(): TextRangeWithKind; 13 getCurrentLeadingTrivia(): TextRangeWithKind[] | undefined; 263 function readEOFTokenRange(): TextRangeWithKind<SyntaxKind.EndOfFileToken> {
|
D | rules.ts | 766 function isTypeArgumentOrParameterOrAssertion(token: TextRangeWithKind, parent: Node): boolean {
|