Home
last modified time | relevance | path

Searched refs:RuleAction (Results 1 – 4 of 4) sorted by relevance

/third_party/typescript/src/services/formatting/
Drules.ts50 …rule("IgnoreBeforeComment", anyToken, comments, anyContext, RuleAction.StopProcessingSpaceActions),
51 …ineComment", SyntaxKind.SingleLineCommentTrivia, anyToken, anyContext, RuleAction.StopProcessingSp…
53 …sxSameLineTokenContext, isNotBinaryOpContext, isNotTypeAnnotationContext], RuleAction.DeleteSpace),
54 …olonToken, anyToken, [isNonJsxSameLineTokenContext, isNotBinaryOpContext], RuleAction.InsertSpace),
55 …sxSameLineTokenContext, isNotBinaryOpContext, isNotTypeAnnotationContext], RuleAction.DeleteSpace),
57 …n, anyToken, [isNonJsxSameLineTokenContext, isConditionalOperatorContext], RuleAction.InsertSpace),
60 …Mark", SyntaxKind.QuestionToken, anyToken, [isNonJsxSameLineTokenContext], RuleAction.DeleteSpace),
62 …ken], [isNonJsxSameLineTokenContext, isNotPropertyAccessOnIntegerLiteral], RuleAction.DeleteSpace),
63 …n, SyntaxKind.QuestionDotToken], anyToken, [isNonJsxSameLineTokenContext], RuleAction.DeleteSpace),
65 …xKind.OpenParenToken, [isNonJsxSameLineTokenContext, isImportTypeContext], RuleAction.DeleteSpace),
[all …]
DrulesMap.ts20 function getRuleActionExclusion(ruleAction: RuleAction): RuleAction {
21 let mask: RuleAction = 0;
22 if (ruleAction & RuleAction.StopProcessingSpaceActions) {
23 mask |= RuleAction.ModifySpaceAction;
25 if (ruleAction & RuleAction.StopProcessingTokenActions) {
26 mask |= RuleAction.ModifyTokenAction;
28 if (ruleAction & RuleAction.ModifySpaceAction) {
29 mask |= RuleAction.ModifySpaceAction;
31 if (ruleAction & RuleAction.ModifyTokenAction) {
32 mask |= RuleAction.ModifyTokenAction;
[all …]
Drule.ts7 readonly action: RuleAction;
14 export const enum RuleAction { enum
Dformatting.ts1053 …trimTrailingWhitespaces = trimTrailingWhitespaces && !(rule.action & RuleAction.DeleteSpace) && ru…
1244 case RuleAction.StopProcessingSpaceActions:
1247 case RuleAction.DeleteSpace:
1254 case RuleAction.DeleteToken:
1257 case RuleAction.InsertNewLine:
1272 case RuleAction.InsertSpace:
1284 case RuleAction.InsertTrailingSemicolon: