File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -3065,14 +3065,7 @@ namespace ts {
3065
3065
return ! ! originalKeywordKind && ! isContextualKeyword ( originalKeywordKind ) ;
3066
3066
}
3067
3067
3068
- export type TriviaKind =
3069
- SyntaxKind . SingleLineCommentTrivia
3070
- | SyntaxKind . MultiLineCommentTrivia
3071
- | SyntaxKind . NewLineTrivia
3072
- | SyntaxKind . WhitespaceTrivia
3073
- | SyntaxKind . ShebangTrivia
3074
- | SyntaxKind . ConflictMarkerTrivia ;
3075
- export function isTrivia ( token : SyntaxKind ) : token is TriviaKind {
3068
+ export function isTrivia ( token : SyntaxKind ) : token is TriviaSyntaxKind {
3076
3069
return SyntaxKind . FirstTriviaToken <= token && token <= SyntaxKind . LastTriviaToken ;
3077
3070
}
3078
3071
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ namespace ts.formatting {
10
10
kind : T ;
11
11
}
12
12
13
- export type TextRangeWithTriviaKind = TextRangeWithKind < TriviaKind > ;
13
+ export type TextRangeWithTriviaKind = TextRangeWithKind < TriviaSyntaxKind > ;
14
14
15
15
export interface TokenInfo {
16
16
leadingTrivia : TextRangeWithTriviaKind [ ] | undefined ;
You can’t perform that action at this time.
0 commit comments