import * as ts from 'typescript' ; import * as util from '../util' ; import { Mutator } from './Mutator' ; export class AsExpressionMutator extends Mutator { protected kind = ts . SyntaxKind . AsExpression ; protected mutate ( node ) { if ( util . isAnyKeyword ( node . type ) ) { return node ; } return this . factory . typeReflectionAndAssertion ( node . type , node . expression ) ; } }