Skip to content

Commit

Permalink
Un-inline the enums in the CST
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Dec 8, 2023
1 parent 9a78865 commit c4c2f4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/solidity/inputs/language/src/grammar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,7 @@ fn resolve_grammar_element(ident: &Identifier, ctx: &mut ResolveCtx<'_>) -> Gram
let thunk = Rc::new(NamedParserThunk {
name: ident.to_string().leak(),
context: lex_ctx,
// Enums have a single reference per variant, so they should be inlined.
is_inline: matches!(elem.as_ref(), Item::Enum { .. }),
is_inline: false,
def: OnceCell::new(),
});
ctx.resolved.insert(
Expand Down

0 comments on commit c4c2f4a

Please sign in to comment.