Skip to content

Commit 36ccbf9

Browse files
committed
Start cleanup to prepare to add reflection on function bodies (starting with statements)
1 parent 6cce2c5 commit 36ccbf9

File tree

3 files changed

+665
-693
lines changed

3 files changed

+665
-693
lines changed

source/parse.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3616,6 +3616,15 @@ struct declaration_node
36163616
return ret;
36173617
}
36183618

3619+
auto is_function_with_compound_body() const
3620+
-> bool
3621+
{
3622+
return
3623+
initializer
3624+
&& initializer->is_compound()
3625+
;
3626+
}
3627+
36193628
auto is_function_with_this() const
36203629
-> bool
36213630
{

0 commit comments

Comments
 (0)