mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
31 lines
549 B
JavaScript
31 lines
549 B
JavaScript
'use strict';
|
|
|
|
// ArrowFunctionExpression
|
|
["Model", "View", "Controller"].forEach(name => console.log(name));
|
|
|
|
// ClassBody, ClassDeclaration, MethodDefinition
|
|
class Socket {
|
|
constructor(port) {
|
|
// ...
|
|
}
|
|
open() {
|
|
// ...
|
|
}
|
|
close() {
|
|
// ...
|
|
}
|
|
}
|
|
|
|
// ClassExpression
|
|
var WebSocket = class extends Socket {
|
|
// ...
|
|
};
|
|
|
|
// ExportBatchSpecifier, ExportDeclaration
|
|
export * from 'lib/network';
|
|
|
|
// ExportSpecifier
|
|
export { Socket };
|
|
|
|
// ImportDeclaration, ImportSpecifier
|
|
import { Packet } from 'lib/data'; |