Skip to content

Commit

Permalink
Use FluentDSL in analysis module (#1311)
Browse files Browse the repository at this point in the history
  • Loading branch information
KuechA authored and oxisto committed Sep 25, 2023
1 parent daca777 commit 13488a3
Showing 1 changed file with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,11 @@ fun LanguageFrontend<*, *>.whileCondition(init: WhileStatement.() -> Expression)
}

/**
<<<<<<< HEAD
* Configures the [DoStatement.condition] in the Fluent Node DSL of the nearest
=======
* <<<<<<< HEAD Configures the [DoStatement.condition] in the Fluent Node DSL of the nearest
>>>>>>> 96ea3b6b4 (Use FluentDSL in analysis module (#1311))
* enclosing [DoStatement]. The [init] block can be used to create further sub-nodes as well as
* configuring the created node itself.
*/
Expand All @@ -695,9 +699,16 @@ fun LanguageFrontend<*, *>.whileCondition(init: DoStatement.() -> Expression): E
}

/**
<<<<<<< HEAD
=======
* Creates a new [CompoundStatement] in the Fluent Node DSL and sets it to the
* [IfStatement.thenStatement] of the nearest enclosing [IfStatement]. The [init] block can be used
* to create further sub-nodes as well as configuring the created node itself.
* =======
>>>>>>> 96ea3b6b4 (Use FluentDSL in analysis module (#1311))
* Creates a new [Block] in the Fluent Node DSL and sets it to the [IfStatement.thenStatement] of
* the nearest enclosing [IfStatement]. The [init] block can be used to create further sub-nodes as
* well as configuring the created node itself.
* well as configuring the created node itself. >>>>>>> main
*/
context(IfStatement)

Expand Down Expand Up @@ -744,24 +755,6 @@ fun LanguageFrontend<*, *>.loopBody(init: Block.() -> Unit): Block {
}

/**
<<<<<<< HEAD
* Creates a new [CompoundStatement] in the Fluent Node DSL and sets it to the
* [DoStatement.statement] of the nearest enclosing [DoStatement]. The [init] block can be used to
* create further sub-nodes as well as configuring the created node itself.
*/
context(DoStatement)

fun LanguageFrontend<*, *>.loopBody(init: Block.() -> Unit): Block {
val node = newBlock()
init(node)
statement = node

return node
}

/**
=======
>>>>>>> 29ccee203 (Renaming nodes to be shorter and more consistent (#1303))
* Creates a new [Block] in the Fluent Node DSL and sets it to the [WhileStatement.statement] of the
* nearest enclosing [WhileStatement]. The [init] block can be used to create further sub-nodes as
* well as configuring the created node itself.
Expand All @@ -777,6 +770,7 @@ fun LanguageFrontend<*, *>.loopBody(init: Block.() -> Unit): Block {
}

/**
<<<<<<< HEAD
<<<<<<< HEAD
* Creates a new [Block] in the Fluent Node DSL and sets it to the [SwitchStatement.statement] of
* the nearest enclosing [SwitchStatement]. The [init] block can be used to create further sub-nodes
Expand All @@ -786,6 +780,11 @@ fun LanguageFrontend<*, *>.loopBody(init: Block.() -> Unit): Block {
* [SwitchStatement.statement] of the nearest enclosing [SwitchStatement]. The [init] block can be
* used to create further sub-nodes as well as configuring the created node itself.
>>>>>>> 29ccee203 (Renaming nodes to be shorter and more consistent (#1303))
=======
* Creates a new [Block] in the Fluent Node DSL and sets it to the [SwitchStatement.statement] of
* the nearest enclosing [SwitchStatement]. The [init] block can be used to create further sub-nodes
* as well as configuring the created node itself.
>>>>>>> 96ea3b6b4 (Use FluentDSL in analysis module (#1311))
*/
context(SwitchStatement)

Expand Down

0 comments on commit 13488a3

Please sign in to comment.