@angular/compiler
Advanced tools
Comparing version 2.4.2 to 2.4.3
/** | ||
* @license Angular v2.4.2 | ||
* @license Angular v2.4.3 | ||
* (c) 2010-2016 Google, Inc. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
{ | ||
"name": "@angular/compiler", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "Angular - the compiler library", | ||
@@ -11,3 +11,3 @@ "main": "bundles/compiler.umd.js", | ||
"peerDependencies": { | ||
"@angular/core": "2.4.2" | ||
"@angular/core": "2.4.3" | ||
}, | ||
@@ -14,0 +14,0 @@ "repository": { |
@@ -364,2 +364,3 @@ /** | ||
var /** @type {?} */ defaults = targetFunction.defaults; | ||
args = args.map(function (arg) { return simplifyInContext(context, arg, depth + 1); }); | ||
if (defaults && defaults.length > args.length) { | ||
@@ -566,5 +567,5 @@ args.push.apply(args, defaults.slice(args.length).map(function (value) { return simplify(value); })); | ||
var /** @type {?} */ argExpressions = expression['arguments'] || []; | ||
var /** @type {?} */ args = argExpressions.map(function (arg) { return simplifyInContext(context, arg, depth + 1); }); | ||
var /** @type {?} */ converter = self.conversionMap.get(staticSymbol); | ||
if (converter) { | ||
var /** @type {?} */ args = argExpressions.map(function (arg) { return simplifyInContext(context, arg, depth + 1); }); | ||
return converter(context, args); | ||
@@ -575,3 +576,3 @@ } | ||
var /** @type {?} */ targetFunction = resolveReferenceValue(staticSymbol); | ||
return simplifyCall(staticSymbol, targetFunction, args); | ||
return simplifyCall(staticSymbol, targetFunction, argExpressions); | ||
} | ||
@@ -779,10 +780,2 @@ } | ||
/** | ||
* @param {?} a | ||
* @param {?} b | ||
* @return {?} | ||
*/ | ||
function sameSymbol(a, b) { | ||
return a === b; | ||
} | ||
/** | ||
* @param {?} value | ||
@@ -789,0 +782,0 @@ * @return {?} |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { Summary, SummaryResolver } from '../summary_resolver'; | ||
@@ -2,0 +9,0 @@ import { StaticSymbol, StaticSymbolCache } from './static_symbol'; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { deserializeSummaries, summaryFileName } from './summary_serializer'; | ||
@@ -2,0 +9,0 @@ var /** @type {?} */ STRIP_SRC_FILE_SUFFIXES = /(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/; |
@@ -1,8 +0,1 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import { Identifiers, createIdentifier } from '../identifiers'; | ||
@@ -9,0 +2,0 @@ import * as o from '../output/output_ast'; |
@@ -9,3 +9,3 @@ /** | ||
import * as cdAst from '../expression_parser/ast'; | ||
import { isBlank, isPresent } from '../facade/lang'; | ||
import { isBlank } from '../facade/lang'; | ||
import { Identifiers, createIdentifier } from '../identifiers'; | ||
@@ -448,3 +448,3 @@ import * as o from '../output/output_ast'; | ||
var /** @type {?} */ varExpr = this._getLocal(ast.name); | ||
if (isPresent(varExpr)) { | ||
if (varExpr) { | ||
result = varExpr.callFn(args); | ||
@@ -498,3 +498,3 @@ } | ||
var /** @type {?} */ varExpr = this._getLocal(ast.name); | ||
if (isPresent(varExpr)) { | ||
if (varExpr) { | ||
throw new Error('Cannot assign to a reference or variable!'); | ||
@@ -501,0 +501,0 @@ } |
@@ -18,3 +18,3 @@ /** | ||
import * as chars from '../chars'; | ||
import { NumberWrapper, isPresent } from '../facade/lang'; | ||
import { NumberWrapper } from '../facade/lang'; | ||
import { CompilerInjectable } from '../injectable'; | ||
@@ -350,3 +350,3 @@ export var TokenType = {}; | ||
} | ||
if (isPresent(threeCode) && this.peek == threeCode) { | ||
if (threeCode != null && this.peek == threeCode) { | ||
this.advance(); | ||
@@ -353,0 +353,0 @@ str += three; |
@@ -210,44 +210,27 @@ /** | ||
var /** @type {?} */ wasInImplicitNode = this._inImplicitNode; | ||
var /** @type {?} */ childNodes; | ||
// Extract only top level nodes with the (implicit) "i18n" attribute if not in a block or an ICU | ||
// message | ||
var /** @type {?} */ childNodes = []; | ||
var /** @type {?} */ translatedChildNodes; | ||
// Extract: | ||
// - top level nodes with the (implicit) "i18n" attribute if not already in a section | ||
// - ICU messages | ||
var /** @type {?} */ i18nAttr = _getI18nAttr(el); | ||
var /** @type {?} */ i18nMeta = i18nAttr ? i18nAttr.value : ''; | ||
var /** @type {?} */ isImplicit = this._implicitTags.some(function (tag) { return el.name === tag; }) && !this._inIcu && | ||
!this._isInTranslatableSection; | ||
var /** @type {?} */ isTopLevelImplicit = !wasInImplicitNode && isImplicit; | ||
this._inImplicitNode = this._inImplicitNode || isImplicit; | ||
this._inImplicitNode = wasInImplicitNode || isImplicit; | ||
if (!this._isInTranslatableSection && !this._inIcu) { | ||
if (i18nAttr) { | ||
// explicit translation | ||
if (i18nAttr || isTopLevelImplicit) { | ||
this._inI18nNode = true; | ||
var /** @type {?} */ message = this._addMessage(el.children, i18nAttr.value); | ||
childNodes = this._translateMessage(el, message); | ||
var /** @type {?} */ message = this._addMessage(el.children, i18nMeta); | ||
translatedChildNodes = this._translateMessage(el, message); | ||
} | ||
else if (isTopLevelImplicit) { | ||
// implicit translation | ||
this._inI18nNode = true; | ||
var /** @type {?} */ message = this._addMessage(el.children); | ||
childNodes = this._translateMessage(el, message); | ||
} | ||
if (this._mode == _VisitorMode.Extract) { | ||
var /** @type {?} */ isTranslatable = i18nAttr || isTopLevelImplicit; | ||
if (isTranslatable) { | ||
if (isTranslatable) | ||
this._openTranslatableSection(el); | ||
} | ||
html.visitAll(this, el.children); | ||
if (isTranslatable) { | ||
if (isTranslatable) | ||
this._closeTranslatableSection(el, el.children); | ||
} | ||
} | ||
if (this._mode === _VisitorMode.Merge && !i18nAttr && !isTopLevelImplicit) { | ||
childNodes = []; | ||
el.children.forEach(function (child) { | ||
var /** @type {?} */ visited = child.visit(_this, context); | ||
if (visited && !_this._isInTranslatableSection) { | ||
// Do not add the children from translatable sections (= i18n blocks here) | ||
// They will be added when the section is close (i.e. on `<!-- /i18n -->`) | ||
childNodes = childNodes.concat(visited); | ||
} | ||
}); | ||
} | ||
} | ||
@@ -262,15 +245,14 @@ else { | ||
} | ||
if (this._mode == _VisitorMode.Merge) { | ||
// Translate attributes in ICU messages | ||
childNodes = []; | ||
el.children.forEach(function (child) { | ||
var /** @type {?} */ visited = child.visit(_this, context); | ||
if (visited && !_this._isInTranslatableSection) { | ||
// Do not add the children from translatable sections (= i18n blocks here) | ||
// They will be added when the section is close (i.e. on `<!-- /i18n -->`) | ||
childNodes = childNodes.concat(visited); | ||
} | ||
}); | ||
} | ||
} | ||
if (this._mode === _VisitorMode.Merge) { | ||
var /** @type {?} */ visitNodes = translatedChildNodes || el.children; | ||
visitNodes.forEach(function (child) { | ||
var /** @type {?} */ visited = child.visit(_this, context); | ||
if (visited && !_this._isInTranslatableSection) { | ||
// Do not add the children from translatable sections (= i18n blocks here) | ||
// They will be added later in this loop when the block closes (i.e. on `<!-- /i18n -->`) | ||
childNodes = childNodes.concat(visited); | ||
} | ||
}); | ||
} | ||
this._visitAttributesOf(el); | ||
@@ -281,3 +263,2 @@ this._depth--; | ||
if (this._mode === _VisitorMode.Merge) { | ||
// There are no childNodes in translatable sections - those nodes will be replace anyway | ||
var /** @type {?} */ translatedAttrs = this._translateAttributes(el); | ||
@@ -435,3 +416,3 @@ return new html.Element(el.name, translatedAttrs, childNodes, el.sourceSpan, el.startSourceSpan, el.endSourceSpan); | ||
* A translatable section could be: | ||
* - a translatable element, | ||
* - the content of translatable element, | ||
* - nodes between `<!-- i18n -->` and `<!-- /i18n -->` comments | ||
@@ -495,8 +476,10 @@ * @return {?} | ||
/** @type {?} */ | ||
_Visitor.prototype._depth; | ||
/** @type {?} */ | ||
_Visitor.prototype._inI18nNode; | ||
/** @type {?} */ | ||
_Visitor.prototype._depth; | ||
/** @type {?} */ | ||
_Visitor.prototype._inImplicitNode; | ||
/** @type {?} */ | ||
_Visitor.prototype._inI18nBlock; | ||
/** @type {?} */ | ||
_Visitor.prototype._blockMeaningAndDesc; | ||
@@ -508,4 +491,2 @@ /** @type {?} */ | ||
/** @type {?} */ | ||
_Visitor.prototype._inI18nBlock; | ||
/** @type {?} */ | ||
_Visitor.prototype._inIcu; | ||
@@ -512,0 +493,0 @@ /** @type {?} */ |
@@ -344,3 +344,3 @@ /** | ||
var _a = this._getParentElementSkippingContainers(), parent = _a.parent, container = _a.container; | ||
if (isPresent(parent) && tagDef.requireExtraParent(parent.name)) { | ||
if (parent && tagDef.requireExtraParent(parent.name)) { | ||
var /** @type {?} */ newParent = new html.Element(tagDef.parentToAdd, [], [], el.sourceSpan, el.startSourceSpan, el.endSourceSpan); | ||
@@ -347,0 +347,0 @@ this._insertBeforeContainer(parent, container, newParent); |
@@ -19,3 +19,3 @@ /** | ||
import { ListWrapper } from './facade/collection'; | ||
import { isPresent, stringify } from './facade/lang'; | ||
import { stringify } from './facade/lang'; | ||
import { CompilerInjectable } from './injectable'; | ||
@@ -54,3 +54,3 @@ import { ReflectorReader, reflector } from './private_import_core'; | ||
var /** @type {?} */ ngModuleMeta = ListWrapper.findLast(this._reflector.annotations(type), _isNgModuleMetadata); | ||
if (isPresent(ngModuleMeta)) { | ||
if (ngModuleMeta) { | ||
return ngModuleMeta; | ||
@@ -57,0 +57,0 @@ } |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"QUOTED_KEYS":"$quoted$","convertValueToOutputAst":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"error","message":"Reference to non-exported class","line":20,"character":0,"context":{"className":"_ValueOutputAstTransformer"}},"defaults":[null,null]}}},{"__symbolic":"module","version":1,"metadata":{"QUOTED_KEYS":"$quoted$","convertValueToOutputAst":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"error","message":"Reference to non-exported class","line":20,"character":0,"context":{"className":"_ValueOutputAstTransformer"}},"defaults":[null,null]}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"QUOTED_KEYS":"$quoted$","convertValueToOutputAst":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"error","message":"Reference to non-exported class","line":19,"character":0,"context":{"className":"_ValueOutputAstTransformer"}},"defaults":[null,null]}}},{"__symbolic":"module","version":1,"metadata":{"QUOTED_KEYS":"$quoted$","convertValueToOutputAst":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"error","message":"Reference to non-exported class","line":19,"character":0,"context":{"className":"_ValueOutputAstTransformer"}},"defaults":[null,null]}}}] |
@@ -19,3 +19,3 @@ /** | ||
import { ListWrapper } from './facade/collection'; | ||
import { isPresent, stringify } from './facade/lang'; | ||
import { stringify } from './facade/lang'; | ||
import { CompilerInjectable } from './injectable'; | ||
@@ -62,5 +62,5 @@ import { ReflectorReader, reflector } from './private_import_core'; | ||
var /** @type {?} */ metas = this._reflector.annotations(resolveForwardRef(type)); | ||
if (isPresent(metas)) { | ||
if (metas) { | ||
var /** @type {?} */ annotation = ListWrapper.findLast(metas, _isPipeMetadata); | ||
if (isPresent(annotation)) { | ||
if (annotation) { | ||
return annotation; | ||
@@ -67,0 +67,0 @@ } |
@@ -169,3 +169,3 @@ /** | ||
queries = currentEl._contentQueries.get(tokenReference(token)); | ||
if (isPresent(queries)) { | ||
if (queries) { | ||
result.push.apply(result, queries.filter(function (query) { return query.descendants || distance <= 1; })); | ||
@@ -179,3 +179,3 @@ } | ||
queries = this.viewContext.viewQueries.get(tokenReference(token)); | ||
if (isPresent(queries)) { | ||
if (queries) { | ||
result.push.apply(result, queries); | ||
@@ -203,3 +203,3 @@ } | ||
var /** @type {?} */ transformedProviderAst = this._transformedProviders.get(tokenReference(token)); | ||
if (isPresent(transformedProviderAst)) { | ||
if (transformedProviderAst) { | ||
return transformedProviderAst; | ||
@@ -226,3 +226,3 @@ } | ||
} | ||
else if (isPresent(provider.useFactory)) { | ||
else if (provider.useFactory) { | ||
var /** @type {?} */ deps = provider.deps || provider.useFactory.diDeps; | ||
@@ -232,3 +232,3 @@ transformedDeps = | ||
} | ||
else if (isPresent(provider.useClass)) { | ||
else if (provider.useClass) { | ||
var /** @type {?} */ deps = provider.deps || provider.useClass.diDeps; | ||
@@ -307,3 +307,3 @@ transformedDeps = | ||
// check parent elements | ||
while (!result && isPresent(currElement._parent)) { | ||
while (!result && currElement._parent) { | ||
var /** @type {?} */ prevElement = currElement; | ||
@@ -403,3 +403,3 @@ currElement = currElement._parent; | ||
var /** @type {?} */ transformedProviderAst = this._transformedProviders.get(tokenReference(token)); | ||
if (isPresent(transformedProviderAst)) { | ||
if (transformedProviderAst) { | ||
return transformedProviderAst; | ||
@@ -426,3 +426,3 @@ } | ||
} | ||
else if (isPresent(provider.useFactory)) { | ||
else if (provider.useFactory) { | ||
var /** @type {?} */ deps = provider.deps || provider.useFactory.diDeps; | ||
@@ -432,3 +432,3 @@ transformedDeps = | ||
} | ||
else if (isPresent(provider.useClass)) { | ||
else if (provider.useClass) { | ||
var /** @type {?} */ deps = provider.deps || provider.useClass.diDeps; | ||
@@ -574,3 +574,3 @@ transformedDeps = | ||
var /** @type {?} */ viewQueries = new Map(); | ||
if (isPresent(component.viewQueries)) { | ||
if (component.viewQueries) { | ||
component.viewQueries.forEach(function (query) { return _addQueryToTokenMap(viewQueries, query); }); | ||
@@ -587,3 +587,3 @@ } | ||
directives.forEach(function (directive) { | ||
if (isPresent(directive.queries)) { | ||
if (directive.queries) { | ||
directive.queries.forEach(function (query) { return _addQueryToTokenMap(contentQueries, query); }); | ||
@@ -590,0 +590,0 @@ } |
@@ -46,3 +46,3 @@ /** | ||
parseInterpolation(value: string, sourceSpan: ParseSourceSpan): ASTWithSource; | ||
parseInlineTemplateBinding(name: string, prefixToken: string, value: string, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[][], targetProps: BoundProperty[], targetVars: VariableAst[]): void; | ||
parseInlineTemplateBinding(prefixToken: string, value: string, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[][], targetProps: BoundProperty[], targetVars: VariableAst[]): void; | ||
private _parseTemplateBindings(prefixToken, value, sourceSpan); | ||
@@ -49,0 +49,0 @@ parseLiteralAttr(name: string, value: string, sourceSpan: ParseSourceSpan, targetMatchableAttrs: string[][], targetProps: BoundProperty[]): void; |
@@ -15,3 +15,2 @@ /** | ||
import { EmptyExpr, RecursiveAstVisitor } from '../expression_parser/ast'; | ||
import { isPresent } from '../facade/lang'; | ||
import { mergeNsAndName } from '../ml_parser/tags'; | ||
@@ -160,3 +159,2 @@ import { ParseError, ParseErrorLevel, ParseSourceSpan } from '../parse_util'; | ||
/** | ||
* @param {?} name | ||
* @param {?} prefixToken | ||
@@ -170,3 +168,3 @@ * @param {?} value | ||
*/ | ||
BindingParser.prototype.parseInlineTemplateBinding = function (name, prefixToken, value, sourceSpan, targetMatchableAttrs, targetProps, targetVars) { | ||
BindingParser.prototype.parseInlineTemplateBinding = function (prefixToken, value, sourceSpan, targetMatchableAttrs, targetProps, targetVars) { | ||
var /** @type {?} */ bindings = this._parseTemplateBindings(prefixToken, value, sourceSpan); | ||
@@ -178,3 +176,3 @@ for (var /** @type {?} */ i = 0; i < bindings.length; i++) { | ||
} | ||
else if (isPresent(binding.expression)) { | ||
else if (binding.expression) { | ||
this._parsePropertyAst(binding.key, binding.expression, sourceSpan, targetMatchableAttrs, targetProps); | ||
@@ -201,3 +199,3 @@ } | ||
bindingsResult.templateBindings.forEach(function (binding) { | ||
if (isPresent(binding.expression)) { | ||
if (binding.expression) { | ||
_this._checkPipes(binding.expression, sourceSpan); | ||
@@ -271,3 +269,3 @@ } | ||
var /** @type {?} */ expr = this.parseInterpolation(value, sourceSpan); | ||
if (isPresent(expr)) { | ||
if (expr) { | ||
this._parsePropertyAst(name, expr, sourceSpan, targetMatchableAttrs, targetProps); | ||
@@ -490,3 +488,3 @@ return true; | ||
var _this = this; | ||
if (isPresent(ast)) { | ||
if (ast) { | ||
var /** @type {?} */ collector = new PipeCollector(); | ||
@@ -493,0 +491,0 @@ ast.visit(collector); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"BoundPropertyType":{"DEFAULT":0,"LITERAL_ATTR":1,"ANIMATION":2},"BoundProperty":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","module":"../expression_parser/ast","name":"ASTWithSource"},{"__symbolic":"error","message":"Could not resolve type","line":41,"character":74,"context":{"typeName":"BoundPropertyType"}},{"__symbolic":"reference","module":"../parse_util","name":"ParseSourceSpan"}]}]}},"BindingParser":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../expression_parser/parser","name":"Parser"},{"__symbolic":"reference","module":"../ml_parser/interpolation_config","name":"InterpolationConfig"},{"__symbolic":"reference","module":"../schema/element_schema_registry","name":"ElementSchemaRegistry"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../compile_metadata","name":"CompilePipeSummary"}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../parse_util","name":"ParseError"}]}]}],"createDirectiveHostPropertyAsts":[{"__symbolic":"method"}],"createDirectiveHostEventAsts":[{"__symbolic":"method"}],"parseInterpolation":[{"__symbolic":"method"}],"parseInlineTemplateBinding":[{"__symbolic":"method"}],"_parseTemplateBindings":[{"__symbolic":"method"}],"parseLiteralAttr":[{"__symbolic":"method"}],"parsePropertyBinding":[{"__symbolic":"method"}],"parsePropertyInterpolation":[{"__symbolic":"method"}],"_parsePropertyAst":[{"__symbolic":"method"}],"_parseAnimation":[{"__symbolic":"method"}],"_parseBinding":[{"__symbolic":"method"}],"createElementPropertyAst":[{"__symbolic":"method"}],"parseEvent":[{"__symbolic":"method"}],"_parseAnimationEvent":[{"__symbolic":"method"}],"_parseEvent":[{"__symbolic":"method"}],"_parseAction":[{"__symbolic":"method"}],"_reportError":[{"__symbolic":"method"}],"_reportExpressionParserErrors":[{"__symbolic":"method"}],"_checkPipes":[{"__symbolic":"method"}],"_validatePropertyOrAttributeName":[{"__symbolic":"method"}]}},"PipeCollector":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../expression_parser/ast","name":"RecursiveAstVisitor"},"members":{"visitPipe":[{"__symbolic":"method"}]}},"calcPossibleSecurityContexts":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"BoundPropertyType":{"DEFAULT":0,"LITERAL_ATTR":1,"ANIMATION":2},"BoundProperty":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","module":"../expression_parser/ast","name":"ASTWithSource"},{"__symbolic":"error","message":"Could not resolve type","line":41,"character":74,"context":{"typeName":"BoundPropertyType"}},{"__symbolic":"reference","module":"../parse_util","name":"ParseSourceSpan"}]}]}},"BindingParser":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../expression_parser/parser","name":"Parser"},{"__symbolic":"reference","module":"../ml_parser/interpolation_config","name":"InterpolationConfig"},{"__symbolic":"reference","module":"../schema/element_schema_registry","name":"ElementSchemaRegistry"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../compile_metadata","name":"CompilePipeSummary"}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../parse_util","name":"ParseError"}]}]}],"createDirectiveHostPropertyAsts":[{"__symbolic":"method"}],"createDirectiveHostEventAsts":[{"__symbolic":"method"}],"parseInterpolation":[{"__symbolic":"method"}],"parseInlineTemplateBinding":[{"__symbolic":"method"}],"_parseTemplateBindings":[{"__symbolic":"method"}],"parseLiteralAttr":[{"__symbolic":"method"}],"parsePropertyBinding":[{"__symbolic":"method"}],"parsePropertyInterpolation":[{"__symbolic":"method"}],"_parsePropertyAst":[{"__symbolic":"method"}],"_parseAnimation":[{"__symbolic":"method"}],"_parseBinding":[{"__symbolic":"method"}],"createElementPropertyAst":[{"__symbolic":"method"}],"parseEvent":[{"__symbolic":"method"}],"_parseAnimationEvent":[{"__symbolic":"method"}],"_parseEvent":[{"__symbolic":"method"}],"_parseAction":[{"__symbolic":"method"}],"_reportError":[{"__symbolic":"method"}],"_reportExpressionParserErrors":[{"__symbolic":"method"}],"_checkPipes":[{"__symbolic":"method"}],"_validatePropertyOrAttributeName":[{"__symbolic":"method"}]}},"PipeCollector":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../expression_parser/ast","name":"RecursiveAstVisitor"},"members":{"visitPipe":[{"__symbolic":"method"}]}},"calcPossibleSecurityContexts":{"__symbolic":"function"}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"BoundPropertyType":{"DEFAULT":0,"LITERAL_ATTR":1,"ANIMATION":2},"BoundProperty":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","module":"../expression_parser/ast","name":"ASTWithSource"},{"__symbolic":"error","message":"Could not resolve type","line":40,"character":74,"context":{"typeName":"BoundPropertyType"}},{"__symbolic":"reference","module":"../parse_util","name":"ParseSourceSpan"}]}]}},"BindingParser":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../expression_parser/parser","name":"Parser"},{"__symbolic":"reference","module":"../ml_parser/interpolation_config","name":"InterpolationConfig"},{"__symbolic":"reference","module":"../schema/element_schema_registry","name":"ElementSchemaRegistry"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../compile_metadata","name":"CompilePipeSummary"}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../parse_util","name":"ParseError"}]}]}],"createDirectiveHostPropertyAsts":[{"__symbolic":"method"}],"createDirectiveHostEventAsts":[{"__symbolic":"method"}],"parseInterpolation":[{"__symbolic":"method"}],"parseInlineTemplateBinding":[{"__symbolic":"method"}],"_parseTemplateBindings":[{"__symbolic":"method"}],"parseLiteralAttr":[{"__symbolic":"method"}],"parsePropertyBinding":[{"__symbolic":"method"}],"parsePropertyInterpolation":[{"__symbolic":"method"}],"_parsePropertyAst":[{"__symbolic":"method"}],"_parseAnimation":[{"__symbolic":"method"}],"_parseBinding":[{"__symbolic":"method"}],"createElementPropertyAst":[{"__symbolic":"method"}],"parseEvent":[{"__symbolic":"method"}],"_parseAnimationEvent":[{"__symbolic":"method"}],"_parseEvent":[{"__symbolic":"method"}],"_parseAction":[{"__symbolic":"method"}],"_reportError":[{"__symbolic":"method"}],"_reportExpressionParserErrors":[{"__symbolic":"method"}],"_checkPipes":[{"__symbolic":"method"}],"_validatePropertyOrAttributeName":[{"__symbolic":"method"}]}},"PipeCollector":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../expression_parser/ast","name":"RecursiveAstVisitor"},"members":{"visitPipe":[{"__symbolic":"method"}]}},"calcPossibleSecurityContexts":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"BoundPropertyType":{"DEFAULT":0,"LITERAL_ATTR":1,"ANIMATION":2},"BoundProperty":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","module":"../expression_parser/ast","name":"ASTWithSource"},{"__symbolic":"error","message":"Could not resolve type","line":40,"character":74,"context":{"typeName":"BoundPropertyType"}},{"__symbolic":"reference","module":"../parse_util","name":"ParseSourceSpan"}]}]}},"BindingParser":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../expression_parser/parser","name":"Parser"},{"__symbolic":"reference","module":"../ml_parser/interpolation_config","name":"InterpolationConfig"},{"__symbolic":"reference","module":"../schema/element_schema_registry","name":"ElementSchemaRegistry"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../compile_metadata","name":"CompilePipeSummary"}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../parse_util","name":"ParseError"}]}]}],"createDirectiveHostPropertyAsts":[{"__symbolic":"method"}],"createDirectiveHostEventAsts":[{"__symbolic":"method"}],"parseInterpolation":[{"__symbolic":"method"}],"parseInlineTemplateBinding":[{"__symbolic":"method"}],"_parseTemplateBindings":[{"__symbolic":"method"}],"parseLiteralAttr":[{"__symbolic":"method"}],"parsePropertyBinding":[{"__symbolic":"method"}],"parsePropertyInterpolation":[{"__symbolic":"method"}],"_parsePropertyAst":[{"__symbolic":"method"}],"_parseAnimation":[{"__symbolic":"method"}],"_parseBinding":[{"__symbolic":"method"}],"createElementPropertyAst":[{"__symbolic":"method"}],"parseEvent":[{"__symbolic":"method"}],"_parseAnimationEvent":[{"__symbolic":"method"}],"_parseEvent":[{"__symbolic":"method"}],"_parseAction":[{"__symbolic":"method"}],"_reportError":[{"__symbolic":"method"}],"_reportExpressionParserErrors":[{"__symbolic":"method"}],"_checkPipes":[{"__symbolic":"method"}],"_validatePropertyOrAttributeName":[{"__symbolic":"method"}]}},"PipeCollector":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../expression_parser/ast","name":"RecursiveAstVisitor"},"members":{"visitPipe":[{"__symbolic":"method"}]}},"calcPossibleSecurityContexts":{"__symbolic":"function"}}}] |
@@ -382,3 +382,3 @@ /** | ||
templateBindingsSource = attr.value; | ||
prefixToken = normalizedName.substring(TEMPLATE_ATTR_PREFIX.length); | ||
prefixToken = normalizedName.substring(TEMPLATE_ATTR_PREFIX.length) + ':'; | ||
} | ||
@@ -391,3 +391,3 @@ var /** @type {?} */ hasTemplateBinding = isPresent(templateBindingsSource); | ||
hasInlineTemplates = true; | ||
_this._bindingParser.parseInlineTemplateBinding(attr.name, prefixToken, templateBindingsSource, attr.sourceSpan, templateMatchableAttrs, templateElementOrDirectiveProps, templateElementVars); | ||
_this._bindingParser.parseInlineTemplateBinding(prefixToken, templateBindingsSource, attr.sourceSpan, templateMatchableAttrs, templateElementOrDirectiveProps, templateElementVars); | ||
} | ||
@@ -394,0 +394,0 @@ if (!hasBinding && !hasTemplateBinding) { |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"TEMPLATE_TRANSFORMS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["TemplateTransforms"]},"TemplateParseError":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../parse_util","name":"ParseError"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","module":"../parse_util","name":"ParseSourceSpan"},{"__symbolic":"reference","module":"../parse_util","name":"ParseErrorLevel"}]}]}},"TemplateParseResult":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"./template_ast","name":"TemplateAst"}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../parse_util","name":"ParseError"}]}]}]}},"TemplateParser":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../injectable","name":"CompilerInjectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"TEMPLATE_TRANSFORMS"}]}]],"parameters":[{"__symbolic":"reference","module":"../expression_parser/parser","name":"Parser"},{"__symbolic":"reference","module":"../schema/element_schema_registry","name":"ElementSchemaRegistry"},{"__symbolic":"reference","module":"../i18n/i18n_html_parser","name":"I18NHtmlParser"},{"__symbolic":"reference","module":"../private_import_core","name":"Console"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"./template_ast","name":"TemplateAstVisitor"}]}]}],"parse":[{"__symbolic":"method"}],"tryParse":[{"__symbolic":"method"}],"tryParseHtml":[{"__symbolic":"method"}],"expandHtml":[{"__symbolic":"method"}],"getInterpolationConfig":[{"__symbolic":"method"}],"_assertNoReferenceDuplicationOnTemplate":[{"__symbolic":"method"}]}},"splitClasses":{"__symbolic":"function","parameters":["classAttrValue"],"value":{"__symbolic":"error","message":"Expression form not supported","line":779,"character":37}},"createElementCssSelector":{"__symbolic":"function"},"removeSummaryDuplicates":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"TEMPLATE_TRANSFORMS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["TemplateTransforms"]},"TemplateParseError":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../parse_util","name":"ParseError"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","module":"../parse_util","name":"ParseSourceSpan"},{"__symbolic":"reference","module":"../parse_util","name":"ParseErrorLevel"}]}]}},"TemplateParseResult":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"./template_ast","name":"TemplateAst"}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../parse_util","name":"ParseError"}]}]}]}},"TemplateParser":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../injectable","name":"CompilerInjectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"TEMPLATE_TRANSFORMS"}]}]],"parameters":[{"__symbolic":"reference","module":"../expression_parser/parser","name":"Parser"},{"__symbolic":"reference","module":"../schema/element_schema_registry","name":"ElementSchemaRegistry"},{"__symbolic":"reference","module":"../i18n/i18n_html_parser","name":"I18NHtmlParser"},{"__symbolic":"reference","module":"../private_import_core","name":"Console"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"./template_ast","name":"TemplateAstVisitor"}]}]}],"parse":[{"__symbolic":"method"}],"tryParse":[{"__symbolic":"method"}],"tryParseHtml":[{"__symbolic":"method"}],"expandHtml":[{"__symbolic":"method"}],"getInterpolationConfig":[{"__symbolic":"method"}],"_assertNoReferenceDuplicationOnTemplate":[{"__symbolic":"method"}]}},"splitClasses":{"__symbolic":"function","parameters":["classAttrValue"],"value":{"__symbolic":"error","message":"Expression form not supported","line":779,"character":37}},"createElementCssSelector":{"__symbolic":"function"},"removeSummaryDuplicates":{"__symbolic":"function"}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"TEMPLATE_TRANSFORMS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["TemplateTransforms"]},"TemplateParseError":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../parse_util","name":"ParseError"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","module":"../parse_util","name":"ParseSourceSpan"},{"__symbolic":"reference","module":"../parse_util","name":"ParseErrorLevel"}]}]}},"TemplateParseResult":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"./template_ast","name":"TemplateAst"}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../parse_util","name":"ParseError"}]}]}]}},"TemplateParser":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../injectable","name":"CompilerInjectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"TEMPLATE_TRANSFORMS"}]}]],"parameters":[{"__symbolic":"reference","module":"../expression_parser/parser","name":"Parser"},{"__symbolic":"reference","module":"../schema/element_schema_registry","name":"ElementSchemaRegistry"},{"__symbolic":"reference","module":"../i18n/i18n_html_parser","name":"I18NHtmlParser"},{"__symbolic":"reference","module":"../private_import_core","name":"Console"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"./template_ast","name":"TemplateAstVisitor"}]}]}],"parse":[{"__symbolic":"method"}],"tryParse":[{"__symbolic":"method"}],"tryParseHtml":[{"__symbolic":"method"}],"expandHtml":[{"__symbolic":"method"}],"getInterpolationConfig":[{"__symbolic":"method"}],"_assertNoReferenceDuplicationOnTemplate":[{"__symbolic":"method"}]}},"splitClasses":{"__symbolic":"function","parameters":["classAttrValue"],"value":{"__symbolic":"error","message":"Expression form not supported","line":781,"character":37}},"createElementCssSelector":{"__symbolic":"function"},"removeSummaryDuplicates":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"TEMPLATE_TRANSFORMS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["TemplateTransforms"]},"TemplateParseError":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../parse_util","name":"ParseError"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","module":"../parse_util","name":"ParseSourceSpan"},{"__symbolic":"reference","module":"../parse_util","name":"ParseErrorLevel"}]}]}},"TemplateParseResult":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"./template_ast","name":"TemplateAst"}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../parse_util","name":"ParseError"}]}]}]}},"TemplateParser":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../injectable","name":"CompilerInjectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"TEMPLATE_TRANSFORMS"}]}]],"parameters":[{"__symbolic":"reference","module":"../expression_parser/parser","name":"Parser"},{"__symbolic":"reference","module":"../schema/element_schema_registry","name":"ElementSchemaRegistry"},{"__symbolic":"reference","module":"../i18n/i18n_html_parser","name":"I18NHtmlParser"},{"__symbolic":"reference","module":"../private_import_core","name":"Console"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"./template_ast","name":"TemplateAstVisitor"}]}]}],"parse":[{"__symbolic":"method"}],"tryParse":[{"__symbolic":"method"}],"tryParseHtml":[{"__symbolic":"method"}],"expandHtml":[{"__symbolic":"method"}],"getInterpolationConfig":[{"__symbolic":"method"}],"_assertNoReferenceDuplicationOnTemplate":[{"__symbolic":"method"}]}},"splitClasses":{"__symbolic":"function","parameters":["classAttrValue"],"value":{"__symbolic":"error","message":"Expression form not supported","line":781,"character":37}},"createElementCssSelector":{"__symbolic":"function"},"removeSummaryDuplicates":{"__symbolic":"function"}}}] |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
export var /** @type {?} */ VERSION = new Version('2.4.2'); | ||
export var /** @type {?} */ VERSION = new Version('2.4.3'); | ||
//# sourceMappingURL=version.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["2.4.2"]}}},{"__symbolic":"module","version":1,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["2.4.2"]}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["2.4.3"]}}},{"__symbolic":"module","version":1,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["2.4.3"]}}}] |
@@ -228,3 +228,3 @@ /** | ||
var /** @type {?} */ propName = "_" + tokenName(resolvedProvider.token) + "_" + _this.nodeIndex + "_" + _this.instances.size; | ||
var /** @type {?} */ instance = createProviderProperty(propName, resolvedProvider, providerValueExpressions, resolvedProvider.multiProvider, resolvedProvider.eager, _this); | ||
var /** @type {?} */ instance = createProviderProperty(propName, providerValueExpressions, resolvedProvider.multiProvider, resolvedProvider.eager, _this); | ||
if (isDirectiveWrapper) { | ||
@@ -340,3 +340,3 @@ _this.directiveWrapperInstance.set(tokenReference(resolvedProvider.token), instance); | ||
var /** @type {?} */ propName = "_query_" + tokenName(queryMeta.selectors[0]) + "_" + this.nodeIndex + "_" + this._queryCount++; | ||
var /** @type {?} */ queryList = createQueryList(queryMeta, directiveInstance, propName, this.view); | ||
var /** @type {?} */ queryList = createQueryList(propName, this.view); | ||
var /** @type {?} */ query = new CompileQuery(queryMeta, queryList, directiveInstance, this.view); | ||
@@ -464,3 +464,2 @@ addQueryToTokenMap(this._queries, query); | ||
* @param {?} propName | ||
* @param {?} provider | ||
* @param {?} providerValueExpressions | ||
@@ -472,3 +471,3 @@ * @param {?} isMulti | ||
*/ | ||
function createProviderProperty(propName, provider, providerValueExpressions, isMulti, isEager, compileElement) { | ||
function createProviderProperty(propName, providerValueExpressions, isMulti, isEager, compileElement) { | ||
var /** @type {?} */ view = compileElement.view; | ||
@@ -475,0 +474,0 @@ var /** @type {?} */ resolvedProviderValueExpr; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import * as o from '../output/output_ast'; | ||
@@ -2,0 +9,0 @@ import { TemplateAst } from '../template_parser/template_ast'; |
@@ -8,3 +8,2 @@ /** | ||
*/ | ||
import { isPresent } from '../facade/lang'; | ||
import * as o from '../output/output_ast'; | ||
@@ -47,3 +46,3 @@ var _DebugState = (function () { | ||
var /** @type {?} */ expr = this._updateDebugContext(this._newState); | ||
if (isPresent(expr)) { | ||
if (expr) { | ||
this._bodyStatements.push(expr.toStmt()); | ||
@@ -60,7 +59,7 @@ } | ||
if (this._debugEnabled) { | ||
var /** @type {?} */ sourceLocation = isPresent(newState.sourceAst) ? newState.sourceAst.sourceSpan.start : null; | ||
var /** @type {?} */ sourceLocation = newState.sourceAst ? newState.sourceAst.sourceSpan.start : null; | ||
return o.THIS_EXPR.callMethod('debug', [ | ||
o.literal(newState.nodeIndex), | ||
isPresent(sourceLocation) ? o.literal(sourceLocation.line) : o.NULL_EXPR, | ||
isPresent(sourceLocation) ? o.literal(sourceLocation.col) : o.NULL_EXPR | ||
sourceLocation ? o.literal(sourceLocation.line) : o.NULL_EXPR, | ||
sourceLocation ? o.literal(sourceLocation.col) : o.NULL_EXPR | ||
]); | ||
@@ -67,0 +66,0 @@ } |
@@ -23,3 +23,3 @@ /** | ||
} | ||
export declare function createQueryList(query: CompileQueryMetadata, directiveInstance: o.Expression, propertyName: string, compileView: CompileView): o.Expression; | ||
export declare function createQueryList(propertyName: string, compileView: CompileView): o.Expression; | ||
export declare function addQueryToTokenMap(map: Map<any, CompileQuery[]>, query: CompileQuery): void; |
@@ -10,3 +10,2 @@ /** | ||
import { ListWrapper } from '../facade/collection'; | ||
import { isPresent } from '../facade/lang'; | ||
import { Identifiers, createIdentifier } from '../identifiers'; | ||
@@ -54,3 +53,3 @@ import * as o from '../output/output_ast'; | ||
var /** @type {?} */ elPath = []; | ||
while (isPresent(currentView) && currentView !== this.view) { | ||
while (currentView && currentView !== this.view) { | ||
var /** @type {?} */ parentEl = currentView.declarationElement; | ||
@@ -92,3 +91,3 @@ elPath.unshift(parentEl); | ||
var /** @type {?} */ updateStmts = [this.queryList.callMethod('reset', [o.literalArr(values)]).toStmt()]; | ||
if (isPresent(this.ownerDirectiveExpression)) { | ||
if (this.ownerDirectiveExpression) { | ||
var /** @type {?} */ valueExpr = this.meta.first ? this.queryList.prop('first') : this.queryList; | ||
@@ -153,4 +152,2 @@ updateStmts.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(valueExpr).toStmt()); | ||
/** | ||
* @param {?} query | ||
* @param {?} directiveInstance | ||
* @param {?} propertyName | ||
@@ -160,3 +157,3 @@ * @param {?} compileView | ||
*/ | ||
export function createQueryList(query, directiveInstance, propertyName, compileView) { | ||
export function createQueryList(propertyName, compileView) { | ||
compileView.fields.push(new o.ClassField(propertyName, o.importType(createIdentifier(Identifiers.QueryList), [o.DYNAMIC_TYPE]))); | ||
@@ -163,0 +160,0 @@ var /** @type {?} */ expr = o.THIS_EXPR.prop(propertyName); |
@@ -113,3 +113,3 @@ /** | ||
var propName = "_viewQuery_" + tokenName(queryMeta.selectors[0]) + "_" + queryIndex; | ||
var queryList = createQueryList(queryMeta, directiveInstance_1, propName, _this); | ||
var queryList = createQueryList(propName, _this); | ||
var query = new CompileQuery(queryMeta, queryList, directiveInstance_1, _this); | ||
@@ -116,0 +116,0 @@ addQueryToTokenMap(viewQueries, query); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"CompileViewRootNodeType":{"Node":0,"ViewContainer":1,"NgContent":2},"CompileViewRootNode":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":33,"character":19,"context":{"typeName":"CompileViewRootNodeType"}},{"__symbolic":"reference","module":"../output/output_ast","name":"Expression"},{"__symbolic":"reference","name":"number"}]}]}},"CompileView":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../compile_metadata","name":"CompileDirectiveMetadata"},{"__symbolic":"reference","module":"../config","name":"CompilerConfig"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../compile_metadata","name":"CompilePipeSummary"}]},{"__symbolic":"reference","module":"../output/output_ast","name":"Expression"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../animation/animation_compiler","name":"AnimationEntryCompileResult"}]},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","module":"./compile_element","name":"CompileElement"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"string"}]}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":89,"character":16}]}]}],"callPipe":[{"__symbolic":"method"}],"getLocal":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"CompileViewRootNodeType":{"Node":0,"ViewContainer":1,"NgContent":2},"CompileViewRootNode":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":33,"character":19,"context":{"typeName":"CompileViewRootNodeType"}},{"__symbolic":"reference","module":"../output/output_ast","name":"Expression"},{"__symbolic":"reference","name":"number"}]}]}},"CompileView":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../compile_metadata","name":"CompileDirectiveMetadata"},{"__symbolic":"reference","module":"../config","name":"CompilerConfig"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../compile_metadata","name":"CompilePipeSummary"}]},{"__symbolic":"reference","module":"../output/output_ast","name":"Expression"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../animation/animation_compiler","name":"AnimationEntryCompileResult"}]},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","module":"./compile_element","name":"CompileElement"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"string"}]}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":89,"character":16}]}]}],"callPipe":[{"__symbolic":"method"}],"getLocal":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"CompileViewRootNodeType":{"Node":0,"ViewContainer":1,"NgContent":2},"CompileViewRootNode":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":32,"character":19,"context":{"typeName":"CompileViewRootNodeType"}},{"__symbolic":"reference","module":"../output/output_ast","name":"Expression"},{"__symbolic":"reference","name":"number"}]}]}},"CompileView":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../compile_metadata","name":"CompileDirectiveMetadata"},{"__symbolic":"reference","module":"../config","name":"CompilerConfig"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../compile_metadata","name":"CompilePipeSummary"}]},{"__symbolic":"reference","module":"../output/output_ast","name":"Expression"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../animation/animation_compiler","name":"AnimationEntryCompileResult"}]},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","module":"./compile_element","name":"CompileElement"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"string"}]}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":88,"character":16}]}]}],"callPipe":[{"__symbolic":"method"}],"getLocal":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"CompileViewRootNodeType":{"Node":0,"ViewContainer":1,"NgContent":2},"CompileViewRootNode":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":32,"character":19,"context":{"typeName":"CompileViewRootNodeType"}},{"__symbolic":"reference","module":"../output/output_ast","name":"Expression"},{"__symbolic":"reference","name":"number"}]}]}},"CompileView":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../compile_metadata","name":"CompileDirectiveMetadata"},{"__symbolic":"reference","module":"../config","name":"CompilerConfig"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../compile_metadata","name":"CompilePipeSummary"}]},{"__symbolic":"reference","module":"../output/output_ast","name":"Expression"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"../animation/animation_compiler","name":"AnimationEntryCompileResult"}]},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","module":"./compile_element","name":"CompileElement"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"string"}]}]},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":88,"character":16}]}]}],"callPipe":[{"__symbolic":"method"}],"getLocal":[{"__symbolic":"method"}],"finish":[{"__symbolic":"method"}]}}}}] |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core'; | ||
import { ViewEncapsulation } from '@angular/core'; | ||
import * as o from '../output/output_ast'; | ||
@@ -18,5 +18,2 @@ import { ViewType } from '../private_import_core'; | ||
} | ||
export declare class ChangeDetectionStrategyEnum { | ||
static fromValue(value: ChangeDetectionStrategy): o.Expression; | ||
} | ||
export declare class ChangeDetectorStatusEnum { | ||
@@ -23,0 +20,0 @@ static fromValue(value: ChangeDetectorStatusEnum): o.Expression; |
@@ -35,14 +35,2 @@ /** | ||
}()); | ||
export var ChangeDetectionStrategyEnum = (function () { | ||
function ChangeDetectionStrategyEnum() { | ||
} | ||
/** | ||
* @param {?} value | ||
* @return {?} | ||
*/ | ||
ChangeDetectionStrategyEnum.fromValue = function (value) { | ||
return createEnumExpression(Identifiers.ChangeDetectionStrategy, value); | ||
}; | ||
return ChangeDetectionStrategyEnum; | ||
}()); | ||
export var ChangeDetectorStatusEnum = (function () { | ||
@@ -49,0 +37,0 @@ function ChangeDetectorStatusEnum() { |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"ViewTypeEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ViewType"},{"__symbolic":"reference","name":"value"}]}}}},"ViewEncapsulationEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ViewEncapsulation"},{"__symbolic":"reference","name":"value"}]}}}},"ChangeDetectionStrategyEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ChangeDetectionStrategy"},{"__symbolic":"reference","name":"value"}]}}}},"ChangeDetectorStatusEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ChangeDetectorStatus"},{"__symbolic":"reference","name":"value"}]}}}},"ViewConstructorVars":{"__symbolic":"class","statics":{"viewUtils":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["viewUtils"]},"parentView":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["parentView"]},"parentIndex":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["parentIndex"]},"parentElement":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["parentElement"]}}},"ViewProperties":{"__symbolic":"class","statics":{"renderer":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"THIS_EXPR"},"member":"prop"},"arguments":["renderer"]},"viewUtils":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"THIS_EXPR"},"member":"prop"},"arguments":["viewUtils"]}}},"InjectMethodVars":{"__symbolic":"class","statics":{"token":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["token"]},"requestNodeIndex":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["requestNodeIndex"]},"notFoundResult":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["notFoundResult"]}}},"DetectChangesVars":{"__symbolic":"class","statics":{"throwOnChange":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["throwOnChange"]},"changes":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["changes"]},"changed":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["changed"]}}}}},{"__symbolic":"module","version":1,"metadata":{"ViewTypeEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ViewType"},{"__symbolic":"reference","name":"value"}]}}}},"ViewEncapsulationEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ViewEncapsulation"},{"__symbolic":"reference","name":"value"}]}}}},"ChangeDetectionStrategyEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ChangeDetectionStrategy"},{"__symbolic":"reference","name":"value"}]}}}},"ChangeDetectorStatusEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ChangeDetectorStatus"},{"__symbolic":"reference","name":"value"}]}}}},"ViewConstructorVars":{"__symbolic":"class","statics":{"viewUtils":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["viewUtils"]},"parentView":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["parentView"]},"parentIndex":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["parentIndex"]},"parentElement":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["parentElement"]}}},"ViewProperties":{"__symbolic":"class","statics":{"renderer":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"THIS_EXPR"},"member":"prop"},"arguments":["renderer"]},"viewUtils":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"THIS_EXPR"},"member":"prop"},"arguments":["viewUtils"]}}},"InjectMethodVars":{"__symbolic":"class","statics":{"token":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["token"]},"requestNodeIndex":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["requestNodeIndex"]},"notFoundResult":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["notFoundResult"]}}},"DetectChangesVars":{"__symbolic":"class","statics":{"throwOnChange":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["throwOnChange"]},"changes":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["changes"]},"changed":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["changed"]}}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"ViewTypeEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ViewType"},{"__symbolic":"reference","name":"value"}]}}}},"ViewEncapsulationEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ViewEncapsulation"},{"__symbolic":"reference","name":"value"}]}}}},"ChangeDetectorStatusEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ChangeDetectorStatus"},{"__symbolic":"reference","name":"value"}]}}}},"ViewConstructorVars":{"__symbolic":"class","statics":{"viewUtils":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["viewUtils"]},"parentView":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["parentView"]},"parentIndex":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["parentIndex"]},"parentElement":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["parentElement"]}}},"ViewProperties":{"__symbolic":"class","statics":{"renderer":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"THIS_EXPR"},"member":"prop"},"arguments":["renderer"]},"viewUtils":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"THIS_EXPR"},"member":"prop"},"arguments":["viewUtils"]}}},"InjectMethodVars":{"__symbolic":"class","statics":{"token":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["token"]},"requestNodeIndex":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["requestNodeIndex"]},"notFoundResult":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["notFoundResult"]}}},"DetectChangesVars":{"__symbolic":"class","statics":{"throwOnChange":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["throwOnChange"]},"changes":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["changes"]},"changed":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["changed"]}}}}},{"__symbolic":"module","version":1,"metadata":{"ViewTypeEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ViewType"},{"__symbolic":"reference","name":"value"}]}}}},"ViewEncapsulationEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ViewEncapsulation"},{"__symbolic":"reference","name":"value"}]}}}},"ChangeDetectorStatusEnum":{"__symbolic":"class","statics":{"fromValue":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../compiler_util/identifier_util","name":"createEnumExpression"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../identifiers","name":"Identifiers"},"member":"ChangeDetectorStatus"},{"__symbolic":"reference","name":"value"}]}}}},"ViewConstructorVars":{"__symbolic":"class","statics":{"viewUtils":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["viewUtils"]},"parentView":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["parentView"]},"parentIndex":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["parentIndex"]},"parentElement":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["parentElement"]}}},"ViewProperties":{"__symbolic":"class","statics":{"renderer":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"THIS_EXPR"},"member":"prop"},"arguments":["renderer"]},"viewUtils":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"THIS_EXPR"},"member":"prop"},"arguments":["viewUtils"]}}},"InjectMethodVars":{"__symbolic":"class","statics":{"token":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["token"]},"requestNodeIndex":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["requestNodeIndex"]},"notFoundResult":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["notFoundResult"]}}},"DetectChangesVars":{"__symbolic":"class","statics":{"throwOnChange":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["throwOnChange"]},"changes":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["changes"]},"changed":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../output/output_ast","name":"variable"},"arguments":["changed"]}}}}}] |
@@ -20,3 +20,2 @@ /** | ||
Object.keys(ce.referenceTokens).forEach(function (varName) { | ||
var /** @type {?} */ token = ce.referenceTokens[varName]; | ||
var /** @type {?} */ varToken = { value: varName }; | ||
@@ -23,0 +22,0 @@ queriesWithReads.push.apply(queriesWithReads, ce.getQueriesFor(varToken).map(function (query) { return new _QueryWithRead(query, varToken); })); |
@@ -15,3 +15,2 @@ /** | ||
import { createDiTokenExpression } from '../compiler_util/identifier_util'; | ||
import { isPresent } from '../facade/lang'; | ||
import * as o from '../output/output_ast'; | ||
@@ -32,3 +31,3 @@ import { ViewType } from '../private_import_core'; | ||
var /** @type {?} */ currView = callingView; | ||
while (currView !== definedView && isPresent(currView.declarationElement.view)) { | ||
while (currView !== definedView && currView.declarationElement.view) { | ||
currView = currView.declarationElement.view; | ||
@@ -35,0 +34,0 @@ viewProp = viewProp.prop('parentView'); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"getPropertyInView":{"__symbolic":"function"},"injectFromViewParentInjector":{"__symbolic":"function"},"getViewClassName":{"__symbolic":"function","parameters":["component","embeddedTemplateIndex"],"value":{"__symbolic":"error","message":"Expression form not supported","line":76,"character":9}},"getHandleEventMethodName":{"__symbolic":"function","parameters":["elementIndex"],"value":{"__symbolic":"error","message":"Expression form not supported","line":80,"character":9}}}},{"__symbolic":"module","version":1,"metadata":{"getPropertyInView":{"__symbolic":"function"},"injectFromViewParentInjector":{"__symbolic":"function"},"getViewClassName":{"__symbolic":"function","parameters":["component","embeddedTemplateIndex"],"value":{"__symbolic":"error","message":"Expression form not supported","line":76,"character":9}},"getHandleEventMethodName":{"__symbolic":"function","parameters":["elementIndex"],"value":{"__symbolic":"error","message":"Expression form not supported","line":80,"character":9}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"getPropertyInView":{"__symbolic":"function"},"injectFromViewParentInjector":{"__symbolic":"function"},"getViewClassName":{"__symbolic":"function","parameters":["component","embeddedTemplateIndex"],"value":{"__symbolic":"error","message":"Expression form not supported","line":74,"character":9}},"getHandleEventMethodName":{"__symbolic":"function","parameters":["elementIndex"],"value":{"__symbolic":"error","message":"Expression form not supported","line":78,"character":9}}}},{"__symbolic":"module","version":1,"metadata":{"getPropertyInView":{"__symbolic":"function"},"injectFromViewParentInjector":{"__symbolic":"function"},"getViewClassName":{"__symbolic":"function","parameters":["component","embeddedTemplateIndex"],"value":{"__symbolic":"error","message":"Expression form not supported","line":74,"character":9}},"getHandleEventMethodName":{"__symbolic":"function","parameters":["elementIndex"],"value":{"__symbolic":"error","message":"Expression form not supported","line":78,"character":9}}}}] |
@@ -743,3 +743,2 @@ /** | ||
if (node.embeddedView) { | ||
var /** @type {?} */ parentNodeIndex = node.isRootElement() ? null : node.parent.nodeIndex; | ||
stmts.push(new o.IfStmt(nodeIndexVar.equals(o.literal(node.nodeIndex)), [new o.ReturnStatement(node.embeddedView.classExpr.instantiate([ | ||
@@ -746,0 +745,0 @@ ViewProperties.viewUtils, o.THIS_EXPR, o.literal(node.nodeIndex), node.renderNode, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5651902
68096