Throw a syntax error for a declare function with a body (#12054)

This commit is contained in:
Sosuke Suzuki
2020-09-19 07:35:37 +09:00
committed by GitHub
parent 6182001a4c
commit ae18f9c0d9
8 changed files with 196 additions and 33 deletions

View File

@@ -70,6 +70,7 @@ export default class State {
inPropertyName: boolean = false;
hasFlowComment: boolean = false;
isIterator: boolean = false;
isDeclareContext: boolean = false;
// For the smartPipelines plugin:
topicContext: TopicContextState = {