Update .bashrc
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / type-check / lib / parse-type.js
index 5baf661faec65fcee069da812479aceb187c6e43..c360c9733964caacc23b6f39eeccf6915c8d03d5 100644 (file)
@@ -1,4 +1,4 @@
-// Generated by LiveScript 1.4.0
+// Generated by LiveScript 1.6.0
 (function(){
   var identifierRegex, tokenRegex;
   identifierRegex = /[\$\w]+/;
     }
   }
   function consumeTypes(tokens){
-    var lookahead, types, typesSoFar, typeObj, type;
+    var lookahead, types, typesSoFar, typeObj, type, structure;
     if ('::' === peek(tokens)) {
       throw new Error("No comment before comment separator '::' found.");
     }
       };
     }
     for (;;) {
-      typeObj = consumeType(tokens), type = typeObj.type;
+      typeObj = consumeType(tokens), type = typeObj.type, structure = typeObj.structure;
       if (!typesSoFar[type]) {
         types.push(typeObj);
       }
-      typesSoFar[type] = true;
+      if (structure == null) {
+        typesSoFar[type] = true;
+      }
       if (!maybeConsumeOp(tokens, '|')) {
         break;
       }