mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +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'; |