Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Use CairoBlockFunctionDefinition node for Cairo Blocks #1087

Open
cicr99 opened this issue Jun 9, 2023 · 0 comments
Open

Use CairoBlockFunctionDefinition node for Cairo Blocks #1087

cicr99 opened this issue Jun 9, 2023 · 0 comments

Comments

@cicr99
Copy link
Contributor

cicr99 commented Jun 9, 2023

There is an implementation for CairoBlockFunctionDefinition nodes in src/ast/cairoNodes/cairoBlockFunctionDefinition.ts that is not being used at the moment. Cairo blocks are currently being handled using the documentation of FunctionDefinition nodes. Using an instance of the class CairoBlockFunctionDefinition to represent the block will make it easier to handle
Some places that will need updating when doing the refactor:

  • src/passes/cairoStubProcessor.ts
  • src/cairoWriter/writers/cairoFunctionDefinitionWriter.ts
  • src/passes/annotateImplicits.ts

Refer to the documentation for further details on Cairo Blocks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant