Skip to content

Commit

Permalink
Merge pull request #1435 from virt00l/fix-expr-block-gen-capture-fiel…
Browse files Browse the repository at this point in the history
…d-cpp-name

fix `_capture` alias of `ExprMake{Block,Generator}'
  • Loading branch information
virt00l authored Dec 12, 2024
2 parents e67aed4 + bd40836 commit 00ecf8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builtin/module_builtin_ast_annotations_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ namespace das {
: AstExpressionAnnotation<ExprMakeBlock> ("ExprMakeBlock", ml) {
addField<DAS_BIND_MANAGED_FIELD(block)>("_block","block");
addField<DAS_BIND_MANAGED_FIELD(stackTop)>("stackTop");
addField<DAS_BIND_MANAGED_FIELD(capture)>("_capture");
addField<DAS_BIND_MANAGED_FIELD(capture)>("_capture", "capture");
addFieldEx ( "mmFlags", "mmFlags", offsetof(ExprMakeBlock, mmFlags), makeExprMakeBlockFlags() );
}
};
Expand All @@ -233,7 +233,7 @@ namespace das {
AstExprMakeGeneratorAnnotation(ModuleLibrary & ml)
: AstExprLooksLikeCallAnnotation<ExprMakeGenerator> ("ExprMakeGenerator", ml) {
addField<DAS_BIND_MANAGED_FIELD(iterType)>("iterType");
addField<DAS_BIND_MANAGED_FIELD(capture)>("_capture");
addField<DAS_BIND_MANAGED_FIELD(capture)>("_capture", "capture");
}
};

Expand Down

0 comments on commit 00ecf8e

Please sign in to comment.