diff --git a/src/protocol/ast.rs b/src/protocol/ast.rs index 3978a7d30a793bf1c852e84768971e4221425a25..5ba51755ee94a3ca7ac27b1ef375c73608ea19f8 100644 --- a/src/protocol/ast.rs +++ b/src/protocol/ast.rs @@ -1301,7 +1301,7 @@ pub struct BreakStatement { pub span: InputSpan, // of the "break" keyword pub label: Option, // Phase 2: linker - pub target: Option, + pub target: EndWhileStatementId, // invalid if not yet set } #[derive(Debug, Clone)] @@ -1311,7 +1311,7 @@ pub struct ContinueStatement { pub span: InputSpan, // of the "continue" keyword pub label: Option, // Phase 2: linker - pub target: Option, + pub target: WhileStatementId, // invalid if not yet set } #[derive(Debug, Clone)] @@ -1388,7 +1388,7 @@ pub struct GotoStatement { pub span: InputSpan, // of the "goto" keyword pub label: Identifier, // Phase 2: linker - pub target: Option, + pub target: LabeledStatementId, // invalid if not yet set } #[derive(Debug, Clone)]