style(compiler): reformat of codebase with new clang-format version (#36520)
This commit reformats the packages/compiler tree using the new version of clang-format. PR Close #36520
This commit is contained in:
@ -15,7 +15,9 @@ type HumanizedExpressionSource = [string, AbsoluteSourceSpan];
|
||||
class ExpressionSourceHumanizer extends e.RecursiveAstVisitor implements t.Visitor {
|
||||
result: HumanizedExpressionSource[] = [];
|
||||
|
||||
private recordAst(ast: e.AST) { this.result.push([unparse(ast), ast.sourceSpan]); }
|
||||
private recordAst(ast: e.AST) {
|
||||
this.result.push([unparse(ast), ast.sourceSpan]);
|
||||
}
|
||||
|
||||
// This method is defined to reconcile the type of ExpressionSourceHumanizer
|
||||
// since both RecursiveAstVisitor and Visitor define the visit() method in
|
||||
@ -124,11 +126,19 @@ class ExpressionSourceHumanizer extends e.RecursiveAstVisitor implements t.Visit
|
||||
}
|
||||
visitReference(ast: t.Reference) {}
|
||||
visitVariable(ast: t.Variable) {}
|
||||
visitEvent(ast: t.BoundEvent) { ast.handler.visit(this); }
|
||||
visitEvent(ast: t.BoundEvent) {
|
||||
ast.handler.visit(this);
|
||||
}
|
||||
visitTextAttribute(ast: t.TextAttribute) {}
|
||||
visitBoundAttribute(ast: t.BoundAttribute) { ast.value.visit(this); }
|
||||
visitBoundEvent(ast: t.BoundEvent) { ast.handler.visit(this); }
|
||||
visitBoundText(ast: t.BoundText) { ast.value.visit(this); }
|
||||
visitBoundAttribute(ast: t.BoundAttribute) {
|
||||
ast.value.visit(this);
|
||||
}
|
||||
visitBoundEvent(ast: t.BoundEvent) {
|
||||
ast.handler.visit(this);
|
||||
}
|
||||
visitBoundText(ast: t.BoundText) {
|
||||
ast.value.visit(this);
|
||||
}
|
||||
visitContent(ast: t.Content) {}
|
||||
visitText(ast: t.Text) {}
|
||||
visitIcu(ast: t.Icu) {}
|
||||
|
Reference in New Issue
Block a user