fix(compiler-cli): Fix typo $implict (#33633)

Should be $implicit instead.

PR Close #33633
This commit is contained in:
Keen Yee Liau 2019-11-06 10:34:09 -08:00 committed by Andrew Scott
parent 39550746f8
commit 10583f951d
2 changed files with 5 additions and 5 deletions

View File

@ -214,7 +214,7 @@ export class AstType implements AstVisitor {
// The members of the implicit receiver are what is defined by the // The members of the implicit receiver are what is defined by the
// scope passed into this class. // scope passed into this class.
return { return {
name: '$implict', name: '$implicit',
kind: 'component', kind: 'component',
language: 'ng-template', language: 'ng-template',
type: undefined, type: undefined,
@ -384,7 +384,7 @@ export class AstType implements AstVisitor {
const member = receiverType.members().get(ast.name); const member = receiverType.members().get(ast.name);
if (!member) { if (!member) {
let receiverInfo = receiverType.name; let receiverInfo = receiverType.name;
if (receiverInfo == '$implict') { if (receiverInfo == '$implicit') {
receiverInfo = receiverInfo =
'The component declaration, template variable declarations, and element references do'; 'The component declaration, template variable declarations, and element references do';
} else if (receiverType.nullable) { } else if (receiverType.nullable) {
@ -398,7 +398,7 @@ export class AstType implements AstVisitor {
} }
if (!member.public) { if (!member.public) {
let receiverInfo = receiverType.name; let receiverInfo = receiverType.name;
if (receiverInfo == '$implict') { if (receiverInfo == '$implicit') {
receiverInfo = 'the component'; receiverInfo = 'the component';
} else { } else {
receiverInfo = `'${receiverInfo}'`; receiverInfo = `'${receiverInfo}'`;

View File

@ -163,7 +163,7 @@ export class Parser {
'Blank expressions are not allowed in interpolated strings', input, 'Blank expressions are not allowed in interpolated strings', input,
`at column ${this._findInterpolationErrorColumn(parts, i, interpolationConfig)} in`, `at column ${this._findInterpolationErrorColumn(parts, i, interpolationConfig)} in`,
location); location);
expressions.push('$implict'); expressions.push('$implicit');
offsets.push(offset); offsets.push(offset);
} }
} }