fix(compiler-cli): Fix typo $implict (#33633)
Should be $implicit instead. PR Close #33633
This commit is contained in:

committed by
Andrew Scott

parent
39550746f8
commit
10583f951d
@ -214,7 +214,7 @@ export class AstType implements AstVisitor {
|
||||
// The members of the implicit receiver are what is defined by the
|
||||
// scope passed into this class.
|
||||
return {
|
||||
name: '$implict',
|
||||
name: '$implicit',
|
||||
kind: 'component',
|
||||
language: 'ng-template',
|
||||
type: undefined,
|
||||
@ -384,7 +384,7 @@ export class AstType implements AstVisitor {
|
||||
const member = receiverType.members().get(ast.name);
|
||||
if (!member) {
|
||||
let receiverInfo = receiverType.name;
|
||||
if (receiverInfo == '$implict') {
|
||||
if (receiverInfo == '$implicit') {
|
||||
receiverInfo =
|
||||
'The component declaration, template variable declarations, and element references do';
|
||||
} else if (receiverType.nullable) {
|
||||
@ -398,7 +398,7 @@ export class AstType implements AstVisitor {
|
||||
}
|
||||
if (!member.public) {
|
||||
let receiverInfo = receiverType.name;
|
||||
if (receiverInfo == '$implict') {
|
||||
if (receiverInfo == '$implicit') {
|
||||
receiverInfo = 'the component';
|
||||
} else {
|
||||
receiverInfo = `'${receiverInfo}'`;
|
||||
@ -427,4 +427,4 @@ export class AstType implements AstVisitor {
|
||||
return !symbol || this.query.getTypeKind(symbol) == BuiltinType.Any ||
|
||||
(!!symbol.type && this.isAny(symbol.type));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user