@@ -1694,11 +1694,11 @@ export function assertClass(
16941694) : asserts node is t . Class {
16951695 assert ( "Class" , node , opts ) ;
16961696}
1697- export function assertModuleDeclaration (
1697+ export function assertImportOrExportDeclaration (
16981698 node : object | null | undefined ,
16991699 opts ?: object | null ,
1700- ) : asserts node is t . ModuleDeclaration {
1701- assert ( "ModuleDeclaration " , node , opts ) ;
1700+ ) : asserts node is t . ImportOrExportDeclaration {
1701+ assert ( "ImportOrExportDeclaration " , node , opts ) ;
17021702}
17031703export function assertExportDeclaration (
17041704 node : object | null | undefined ,
@@ -1804,21 +1804,31 @@ export function assertTSBaseType(
18041804}
18051805export function assertNumberLiteral ( node : any , opts : any ) : void {
18061806 console . trace (
1807- "The node type NumberLiteral has been renamed to NumericLiteral " ,
1807+ "`assertNumberLiteral` has been deprecated, please migrate to `assertNumericLiteral`. " ,
18081808 ) ;
18091809 assert ( "NumberLiteral" , node , opts ) ;
18101810}
18111811export function assertRegexLiteral ( node : any , opts : any ) : void {
1812- console . trace ( "The node type RegexLiteral has been renamed to RegExpLiteral" ) ;
1812+ console . trace (
1813+ "`assertRegexLiteral` has been deprecated, please migrate to `assertRegExpLiteral`." ,
1814+ ) ;
18131815 assert ( "RegexLiteral" , node , opts ) ;
18141816}
18151817export function assertRestProperty ( node : any , opts : any ) : void {
1816- console . trace ( "The node type RestProperty has been renamed to RestElement" ) ;
1818+ console . trace (
1819+ "`assertRestProperty` has been deprecated, please migrate to `assertRestElement`." ,
1820+ ) ;
18171821 assert ( "RestProperty" , node , opts ) ;
18181822}
18191823export function assertSpreadProperty ( node : any , opts : any ) : void {
18201824 console . trace (
1821- "The node type SpreadProperty has been renamed to SpreadElement " ,
1825+ "`assertSpreadProperty` has been deprecated, please migrate to `assertSpreadElement`. " ,
18221826 ) ;
18231827 assert ( "SpreadProperty" , node , opts ) ;
18241828}
1829+ export function assertModuleDeclaration ( node : any , opts : any ) : void {
1830+ console . trace (
1831+ "`assertModuleDeclaration` has been deprecated, please migrate to `assertImportOrExportDeclaration`." ,
1832+ ) ;
1833+ assert ( "ModuleDeclaration" , node , opts ) ;
1834+ }
0 commit comments