@@ -373,7 +373,7 @@ export class PrefixNot extends AST {
373373 }
374374}
375375
376- export class PrefixTypeof extends AST {
376+ export class TypeofExpression extends AST {
377377 constructor (
378378 span : ParseSpan ,
379379 sourceSpan : AbsoluteSourceSpan ,
@@ -382,7 +382,7 @@ export class PrefixTypeof extends AST {
382382 super ( span , sourceSpan ) ;
383383 }
384384 override visit ( visitor : AstVisitor , context : any = null ) : any {
385- return visitor . visitPrefixTypeof ( this , context ) ;
385+ return visitor . visitTypeofExpresion ( this , context ) ;
386386 }
387387}
388388
@@ -547,7 +547,7 @@ export interface AstVisitor {
547547 visitLiteralPrimitive ( ast : LiteralPrimitive , context : any ) : any ;
548548 visitPipe ( ast : BindingPipe , context : any ) : any ;
549549 visitPrefixNot ( ast : PrefixNot , context : any ) : any ;
550- visitPrefixTypeof ( ast : PrefixTypeof , context : any ) : any ;
550+ visitTypeofExpresion ( ast : TypeofExpression , context : any ) : any ;
551551 visitNonNullAssert ( ast : NonNullAssert , context : any ) : any ;
552552 visitPropertyRead ( ast : PropertyRead , context : any ) : any ;
553553 visitPropertyWrite ( ast : PropertyWrite , context : any ) : any ;
@@ -615,7 +615,7 @@ export class RecursiveAstVisitor implements AstVisitor {
615615 visitPrefixNot ( ast : PrefixNot , context : any ) : any {
616616 this . visit ( ast . expression , context ) ;
617617 }
618- visitPrefixTypeof ( ast : PrefixTypeof , context : any ) {
618+ visitTypeofExpresion ( ast : TypeofExpression , context : any ) {
619619 this . visit ( ast . expression , context ) ;
620620 }
621621 visitNonNullAssert ( ast : NonNullAssert , context : any ) : any {
@@ -732,8 +732,8 @@ export class AstTransformer implements AstVisitor {
732732 return new PrefixNot ( ast . span , ast . sourceSpan , ast . expression . visit ( this ) ) ;
733733 }
734734
735- visitPrefixTypeof ( ast : PrefixNot , context : any ) : AST {
736- return new PrefixTypeof ( ast . span , ast . sourceSpan , ast . expression . visit ( this ) ) ;
735+ visitTypeofExpresion ( ast : PrefixNot , context : any ) : AST {
736+ return new TypeofExpression ( ast . span , ast . sourceSpan , ast . expression . visit ( this ) ) ;
737737 }
738738
739739 visitNonNullAssert ( ast : NonNullAssert , context : any ) : AST {
@@ -912,10 +912,10 @@ export class AstMemoryEfficientTransformer implements AstVisitor {
912912 return ast ;
913913 }
914914
915- visitPrefixTypeof ( ast : PrefixTypeof , context : any ) : AST {
915+ visitTypeofExpresion ( ast : TypeofExpression , context : any ) : AST {
916916 const expression = ast . expression . visit ( this ) ;
917917 if ( expression !== ast . expression ) {
918- return new PrefixTypeof ( ast . span , ast . sourceSpan , expression ) ;
918+ return new TypeofExpression ( ast . span , ast . sourceSpan , expression ) ;
919919 }
920920 return ast ;
921921 }
0 commit comments