Skip to content

Commit

Permalink
Skip ObjectiveC nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangnrd committed Jan 15, 2025
1 parent 3931bf8 commit d3d3544
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/generator/top_level.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,23 @@ function collect_top_level_nodes!(nodes::Vector{ExprNode}, cursor::CLEnumDecl, o
return nodes
end

# TODO: Implement full ObjectiveC codegen
function collect_top_level_nodes!(nodes::Vector{ExprNode}, cursor::CLObjCClassRef, options)
return nodes
end
function collect_top_level_nodes!(nodes::Vector{ExprNode}, cursor::CLObjCProtocolDecl, options)
return nodes
end
function collect_top_level_nodes!(nodes::Vector{ExprNode}, cursor::CLObjCProtocolRef, options)
return nodes
end
function collect_top_level_nodes!(nodes::Vector{ExprNode}, cursor::CLObjCInterfaceDecl, options)
return nodes
end
function collect_top_level_nodes!(nodes::Vector{ExprNode}, cursor::CLObjCCategoryDecl, options)
return nodes
end

# skip macro expansion since the expanded info is already embedded in the AST
collect_top_level_nodes!(nodes::Vector{ExprNode}, cursor::CLMacroInstantiation, options) = nodes
collect_top_level_nodes!(nodes::Vector{ExprNode}, cursor::CLMacroExpansion, options) = nodes
Expand Down

0 comments on commit d3d3544

Please sign in to comment.