2
0

Node.js 331 B

12345678910111213141516171819202122232425262728293031
  1. class Node {
  2. constructor( type ) {
  3. this.type = type;
  4. this.isNode = true;
  5. }
  6. getType( builder ) {
  7. return this.type;
  8. }
  9. generate( builder, output ) {
  10. console.warn("Abstract function");
  11. }
  12. build( builder, output ) {
  13. return this.generate( builder, output );
  14. }
  15. }
  16. export default Node;