Skip to content

Commit

Permalink
revert accidental deletion in grammar.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-trunov committed Apr 2, 2024
1 parent 572dedd commit 4f4de39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/grammar/grammar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ semantics.addOperation<ASTNode>('resolve_declaration', {
}

const attributes = arg0.children.map((v) => v.resolve_attributes()) as ASTFunctionAttribute[];
checkVariableName(arg2.sourceString, createRef(arg2));
checkFunctionAttributes(true, attributes, createRef(this));
return createNode({
kind: 'def_function',
origin: ctx!.origin,
Expand Down

0 comments on commit 4f4de39

Please sign in to comment.