parent
a35bf114eb
commit
ba47997715
@ -693,7 +693,7 @@ export class _ParseAST {
|
|||||||
firstBinding = false;
|
firstBinding = false;
|
||||||
} else {
|
} else {
|
||||||
isVar = this.peekKeywordLet();
|
isVar = this.peekKeywordLet();
|
||||||
if (isVar) this.advance()
|
if (isVar) this.advance();
|
||||||
rawKey = this.expectTemplateBindingKey();
|
rawKey = this.expectTemplateBindingKey();
|
||||||
key = isVar ? rawKey : tplKey + rawKey[0].toUpperCase() + rawKey.substring(1);
|
key = isVar ? rawKey : tplKey + rawKey[0].toUpperCase() + rawKey.substring(1);
|
||||||
this.optionalCharacter(chars.$COLON);
|
this.optionalCharacter(chars.$COLON);
|
||||||
@ -729,7 +729,7 @@ export class _ParseAST {
|
|||||||
if (!this.optionalCharacter(chars.$SEMICOLON)) {
|
if (!this.optionalCharacter(chars.$SEMICOLON)) {
|
||||||
this.optionalCharacter(chars.$COMMA);
|
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);
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,7 @@ import {CompileReflector} from '../compile_reflector';
|
|||||||
import {BindingForm, BuiltinFunctionCall, LocalResolver, convertActionBinding, convertPropertyBinding} from '../compiler_util/expression_converter';
|
import {BindingForm, BuiltinFunctionCall, LocalResolver, convertActionBinding, convertPropertyBinding} from '../compiler_util/expression_converter';
|
||||||
import {ConstantPool, DefinitionKind} from '../constant_pool';
|
import {ConstantPool, DefinitionKind} from '../constant_pool';
|
||||||
import * as core from '../core';
|
import * as core from '../core';
|
||||||
import {AST, AstMemoryEfficientTransformer, BindingPipe, FunctionCall, ImplicitReceiver, LiteralArray, LiteralMap, LiteralPrimitive, PropertyRead} from '../expression_parser/ast';
|
import {AST, AstMemoryEfficientTransformer, BindingPipe, BoundElementBindingType, FunctionCall, ImplicitReceiver, LiteralArray, LiteralMap, LiteralPrimitive, PropertyRead} from '../expression_parser/ast';
|
||||||
import {BoundElementBindingType} from '../expression_parser/ast';
|
|
||||||
import {Identifiers} from '../identifiers';
|
import {Identifiers} from '../identifiers';
|
||||||
import {LifecycleHooks} from '../lifecycle_reflector';
|
import {LifecycleHooks} from '../lifecycle_reflector';
|
||||||
import * as o from '../output/output_ast';
|
import * as o from '../output/output_ast';
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
|
|
||||||
import {CompileDirectiveSummary, CompilePipeSummary} from '../compile_metadata';
|
import {CompileDirectiveSummary, CompilePipeSummary} from '../compile_metadata';
|
||||||
import {SecurityContext} from '../core';
|
import {SecurityContext} from '../core';
|
||||||
import {ASTWithSource, BindingPipe, EmptyExpr, ParserError, RecursiveAstVisitor, TemplateBinding} from '../expression_parser/ast';
|
import {ASTWithSource, BindingPipe, BoundElementBindingType, BoundElementProperty, EmptyExpr, ParsedEvent, ParsedEventType, ParsedProperty, ParsedPropertyType, ParsedVariable, ParserError, RecursiveAstVisitor, TemplateBinding} from '../expression_parser/ast';
|
||||||
import {BoundElementBindingType, BoundElementProperty, ParsedEvent, ParsedEventType, ParsedProperty, ParsedPropertyType, ParsedVariable} from '../expression_parser/ast';
|
|
||||||
import {Parser} from '../expression_parser/parser';
|
import {Parser} from '../expression_parser/parser';
|
||||||
import {InterpolationConfig} from '../ml_parser/interpolation_config';
|
import {InterpolationConfig} from '../ml_parser/interpolation_config';
|
||||||
import {mergeNsAndName} from '../ml_parser/tags';
|
import {mergeNsAndName} from '../ml_parser/tags';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user