From ba479977159e974bc5093c514f1a05cca9e87618 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Fri, 20 Apr 2018 19:52:02 -0700 Subject: [PATCH] style(compiler): fix lint issues (#23480) PR Close #23480 --- packages/compiler/src/expression_parser/parser.ts | 8 ++++---- packages/compiler/src/render3/r3_view_compiler_local.ts | 3 +-- packages/compiler/src/template_parser/binding_parser.ts | 3 +-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/compiler/src/expression_parser/parser.ts b/packages/compiler/src/expression_parser/parser.ts index f69afa45b2..c6be7f5886 100644 --- a/packages/compiler/src/expression_parser/parser.ts +++ b/packages/compiler/src/expression_parser/parser.ts @@ -693,8 +693,8 @@ export class _ParseAST { firstBinding = false; } else { isVar = this.peekKeywordLet(); - if (isVar) this.advance() - rawKey = this.expectTemplateBindingKey(); + if (isVar) this.advance(); + rawKey = this.expectTemplateBindingKey(); key = isVar ? rawKey : tplKey + rawKey[0].toUpperCase() + rawKey.substring(1); this.optionalCharacter(chars.$COLON); } @@ -729,9 +729,9 @@ export class _ParseAST { if (!this.optionalCharacter(chars.$SEMICOLON)) { this.optionalCharacter(chars.$COMMA); } - } while (this.index < this.tokens.length) + } while (this.index < this.tokens.length); - return new TemplateBindingParseResult(bindings, warnings, this.errors); + return new TemplateBindingParseResult(bindings, warnings, this.errors); } error(message: string, index: number|null = null) { diff --git a/packages/compiler/src/render3/r3_view_compiler_local.ts b/packages/compiler/src/render3/r3_view_compiler_local.ts index 0b4f211cb2..4e1a4f9c1c 100644 --- a/packages/compiler/src/render3/r3_view_compiler_local.ts +++ b/packages/compiler/src/render3/r3_view_compiler_local.ts @@ -11,8 +11,7 @@ import {CompileReflector} from '../compile_reflector'; import {BindingForm, BuiltinFunctionCall, LocalResolver, convertActionBinding, convertPropertyBinding} from '../compiler_util/expression_converter'; import {ConstantPool, DefinitionKind} from '../constant_pool'; import * as core from '../core'; -import {AST, AstMemoryEfficientTransformer, BindingPipe, FunctionCall, ImplicitReceiver, LiteralArray, LiteralMap, LiteralPrimitive, PropertyRead} from '../expression_parser/ast'; -import {BoundElementBindingType} from '../expression_parser/ast'; +import {AST, AstMemoryEfficientTransformer, BindingPipe, BoundElementBindingType, FunctionCall, ImplicitReceiver, LiteralArray, LiteralMap, LiteralPrimitive, PropertyRead} from '../expression_parser/ast'; import {Identifiers} from '../identifiers'; import {LifecycleHooks} from '../lifecycle_reflector'; import * as o from '../output/output_ast'; diff --git a/packages/compiler/src/template_parser/binding_parser.ts b/packages/compiler/src/template_parser/binding_parser.ts index ea493cf3c2..7cdcb2f0ee 100644 --- a/packages/compiler/src/template_parser/binding_parser.ts +++ b/packages/compiler/src/template_parser/binding_parser.ts @@ -8,8 +8,7 @@ import {CompileDirectiveSummary, CompilePipeSummary} from '../compile_metadata'; import {SecurityContext} from '../core'; -import {ASTWithSource, BindingPipe, EmptyExpr, ParserError, RecursiveAstVisitor, TemplateBinding} from '../expression_parser/ast'; -import {BoundElementBindingType, BoundElementProperty, ParsedEvent, ParsedEventType, ParsedProperty, ParsedPropertyType, ParsedVariable} from '../expression_parser/ast'; +import {ASTWithSource, BindingPipe, BoundElementBindingType, BoundElementProperty, EmptyExpr, ParsedEvent, ParsedEventType, ParsedProperty, ParsedPropertyType, ParsedVariable, ParserError, RecursiveAstVisitor, TemplateBinding} from '../expression_parser/ast'; import {Parser} from '../expression_parser/parser'; import {InterpolationConfig} from '../ml_parser/interpolation_config'; import {mergeNsAndName} from '../ml_parser/tags';