mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Merge remote-tracking branch 'origin/trunk' into flat-declarations
This commit is contained in:
commit
e0ab55cef5
66 changed files with 1870 additions and 1610 deletions
|
@ -2072,6 +2072,19 @@ impl Declarations {
|
|||
index
|
||||
}
|
||||
|
||||
pub fn push_expect(&mut self, loc_expr: Loc<Expr>) -> usize {
|
||||
let index = self.declarations.len();
|
||||
|
||||
self.declarations.push(DeclarationTag::Expectation);
|
||||
self.variables.push(Variable::BOOL);
|
||||
self.symbols.push(Loc::at_zero(Symbol::ATTR_ATTR));
|
||||
self.annotations.push(None);
|
||||
|
||||
self.expressions.push(loc_expr);
|
||||
|
||||
index
|
||||
}
|
||||
|
||||
pub fn push_value_def(
|
||||
&mut self,
|
||||
symbol: Loc<Symbol>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue