Przeglądaj źródła

reorganize console log

Yuki Takei 3 lat temu
rodzic
commit
9a77dda4a6

+ 3 - 13
packages/micromark-extension-gfm-table/dev/lib/syntax.js

@@ -174,19 +174,6 @@ function tokenizeTable(effects, ok, nok) {
   /** @type {boolean|undefined} */
   /** @type {boolean|undefined} */
   let hasDash;
   let hasDash;
 
 
-
-  const originalEnter = effects.enter;
-  const originalExit = effects.exit;
-  effects.enter = (...args) => {
-    console.log(`>> enter ${args[0]}`);
-    return originalEnter(...args);
-  };
-  effects.exit = (...args) => {
-    console.log(`<< exit ${args[0]}`);
-    return originalExit(...args);
-  };
-
-
   return start;
   return start;
 
 
   /** @type {State} */
   /** @type {State} */
@@ -287,6 +274,8 @@ function tokenizeTable(effects, ok, nok) {
 
 
   /** @type {State} */
   /** @type {State} */
   function atRowEndHead(code) {
   function atRowEndHead(code) {
+    console.log('atRowEndHead');
+
     if (code === codes.eof) {
     if (code === codes.eof) {
       return nok(code);
       return nok(code);
     }
     }
@@ -544,6 +533,7 @@ function tokenizeTable(effects, ok, nok) {
 
 
   /** @type {State} */
   /** @type {State} */
   function atRowEndBody(code) {
   function atRowEndBody(code) {
+    console.log('atRowEndBody');
     effects.exit('tableRow');
     effects.exit('tableRow');
 
 
     if (code === codes.eof) {
     if (code === codes.eof) {