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

Use CairoBlockFunctionDefinition node for Cairo Blocks #1087

Description

@cicr99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions