Fix TopicContextState type in Flow
This commit is contained in:
parent
7931f4c241
commit
6e41edb90f
@ -6,7 +6,7 @@ import { Position } from "../util/location";
|
|||||||
|
|
||||||
import { types as ct, type TokContext } from "./context";
|
import { types as ct, type TokContext } from "./context";
|
||||||
import type { Token } from "./index";
|
import type { Token } from "./index";
|
||||||
import { types as tt, type TokenType } from "./types";
|
import { types as tt, type TokenType, type TopicContextState } from "./types";
|
||||||
|
|
||||||
export default class State {
|
export default class State {
|
||||||
init(options: Options, input: string): void {
|
init(options: Options, input: string): void {
|
||||||
@ -36,7 +36,7 @@ export default class State {
|
|||||||
// Used by smartPipelines.
|
// Used by smartPipelines.
|
||||||
this.topicContext = {
|
this.topicContext = {
|
||||||
maxNumOfResolvableTopics: 0,
|
maxNumOfResolvableTopics: 0,
|
||||||
maxTopicIndex: undefined,
|
maxTopicIndex: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
this.classLevel = 0;
|
this.classLevel = 0;
|
||||||
@ -118,7 +118,7 @@ export default class State {
|
|||||||
isIterator: boolean;
|
isIterator: boolean;
|
||||||
|
|
||||||
// For the smartPipelines plugin:
|
// For the smartPipelines plugin:
|
||||||
topicContextState: tt.TopicContextState;
|
topicContext: TopicContextState;
|
||||||
|
|
||||||
// Check whether we are in a (nested) class or not.
|
// Check whether we are in a (nested) class or not.
|
||||||
classLevel: number;
|
classLevel: number;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user