* Fix #656

* Fix #656
This commit is contained in:
Naveen jain 2017-08-04 15:24:03 +05:30 committed by Daniel Tschinder
parent eee1a3854e
commit 0c11af8fc5
6 changed files with 5 additions and 12 deletions

View File

@ -1043,12 +1043,10 @@ export default (superClass: Class<Parser>): Class<Parser> =>
);
case tt._null:
node.value = this.match(tt._null);
this.next();
return this.finishNode(node, "NullLiteralTypeAnnotation");
case tt._this:
node.value = this.match(tt._this);
this.next();
return this.finishNode(node, "ThisTypeAnnotation");

View File

@ -152,8 +152,7 @@
"line": 2,
"column": 25
}
},
"value": true
}
},
"typeParameters": null
}

View File

@ -100,8 +100,7 @@
"line": 1,
"column": 13
}
},
"value": true
}
}
}
},

View File

@ -142,8 +142,7 @@
"line": 1,
"column": 22
}
},
"value": true
}
}
},
"body": {

View File

@ -529,8 +529,7 @@
"line": 12,
"column": 13
}
},
"value": true
}
},
"leadingComments": [
{

View File

@ -212,8 +212,7 @@
"line": 1,
"column": 21
}
},
"value": true
}
},
{
"type": "ExistsTypeAnnotation",