refactor(language-service): reformat using clang-format (#36426)
clang-format was recently updated and any PRs that touch files in the language service will have to reformat all the files. Instead of changing the formatting in those PRs, this PR formats all files in language-service package once and for all. PR Close #36426
This commit is contained in:

committed by
Kara Erickson

parent
1b4df6484e
commit
1140bbc25c
@ -6,7 +6,8 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {AST, ASTWithSource, AstPath as AstPathBase, RecursiveAstVisitor} from '@angular/compiler';
|
||||
import {AST, AstPath as AstPathBase, ASTWithSource, RecursiveAstVisitor} from '@angular/compiler';
|
||||
|
||||
import {AstType} from './expression_type';
|
||||
import {BuiltinType, Span, Symbol, SymbolTable, TemplateSource} from './types';
|
||||
import {inSpan} from './utils';
|
||||
@ -41,7 +42,7 @@ export function getExpressionCompletions(
|
||||
undefined {
|
||||
const path = findAstAt(ast, position);
|
||||
if (path.empty) return undefined;
|
||||
const tail = path.tail !;
|
||||
const tail = path.tail!;
|
||||
let result: SymbolTable|undefined = scope;
|
||||
|
||||
function getType(ast: AST): Symbol {
|
||||
@ -57,7 +58,9 @@ export function getExpressionCompletions(
|
||||
visitConditional(ast) {},
|
||||
visitFunctionCall(ast) {},
|
||||
visitImplicitReceiver(ast) {},
|
||||
visitInterpolation(ast) { result = undefined; },
|
||||
visitInterpolation(ast) {
|
||||
result = undefined;
|
||||
},
|
||||
visitKeyedRead(ast) {},
|
||||
visitKeyedWrite(ast) {},
|
||||
visitLiteralArray(ast) {},
|
||||
@ -111,7 +114,7 @@ export function getExpressionSymbol(
|
||||
templateInfo: TemplateSource): {symbol: Symbol, span: Span}|undefined {
|
||||
const path = findAstAt(ast, position, /* excludeEmpty */ true);
|
||||
if (path.empty) return undefined;
|
||||
const tail = path.tail !;
|
||||
const tail = path.tail!;
|
||||
|
||||
function getType(ast: AST): Symbol {
|
||||
return new AstType(scope, templateInfo.query, {}, templateInfo.source).getType(ast);
|
||||
|
Reference in New Issue
Block a user