@@ -270,7 +270,7 @@ namespace ts {
270270 return updateParameter ( < ParameterDeclaration > node ,
271271 nodesVisitor ( ( < ParameterDeclaration > node ) . decorators , visitor , isDecorator ) ,
272272 nodesVisitor ( ( < ParameterDeclaration > node ) . modifiers , visitor , isModifier ) ,
273- ( < ParameterDeclaration > node ) . dotDotDotToken ,
273+ visitNode ( ( < ParameterDeclaration > node ) . dotDotDotToken , visitor ) ,
274274 visitNode ( ( < ParameterDeclaration > node ) . name , visitor , isBindingName ) ,
275275 visitNode ( ( < ParameterDeclaration > node ) . questionToken , visitor , isToken ) ,
276276 visitNode ( ( < ParameterDeclaration > node ) . type , visitor , isTypeNode ) ,
@@ -294,7 +294,7 @@ namespace ts {
294294 case SyntaxKind . NeverKeyword :
295295 case SyntaxKind . NeverKeyword :
296296 case SyntaxKind . ThisKeyword :
297- return node ;
297+ throw new Error ( "should be caught above" ) ;
298298
299299 // Types
300300
@@ -332,7 +332,8 @@ namespace ts {
332332 case SyntaxKind . MappedType :
333333 throw new Error ( "reached unsupported type in visitor." ) ;
334334 case SyntaxKind . LiteralType :
335- throw new Error ( "reached unsupported type in visitor." ) ;
335+ return updateLiteralTypeNode ( < LiteralTypeNode > node
336+ , visitNode ( ( < LiteralTypeNode > node ) . literal , visitor , isExpression ) ) ;
336337
337338 // Type Declarations
338339
0 commit comments