Skip to content

Commit

Permalink
Merge pull request #159 from specs-feup/fix/set_last_child_first_child
Browse files Browse the repository at this point in the history
Feature: setLastChild and setFirstChild return types
  • Loading branch information
joaobispo authored Sep 11, 2024
2 parents 6150e7a + 8a86289 commit 4febde6
Show file tree
Hide file tree
Showing 112 changed files with 1,008 additions and 1,475 deletions.
8 changes: 4 additions & 4 deletions Clava-JS/src-api/Joinpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,9 @@ export class Joinpoint extends LaraJoinPoint {
*/
setData(source: object): void { return wrapJoinPoint(this._javaObject.setData(JSON.stringify(source))); }
/**
* Replaces the first child, or inserts the join point if no child is present
* Replaces the first child, or inserts the join point if no child is present. Returns the replaced child, or undefined if there was no child present.
*/
setFirstChild(node: Joinpoint): void { return wrapJoinPoint(this._javaObject.setFirstChild(unwrapJoinPoint(node))); }
setFirstChild(node: Joinpoint): Joinpoint { return wrapJoinPoint(this._javaObject.setFirstChild(unwrapJoinPoint(node))); }
/**
* Sets the commented that are embedded in a node
*/
Expand All @@ -500,9 +500,9 @@ export class Joinpoint extends LaraJoinPoint {
*/
setInlineComments(p1: string[] | string): void { return wrapJoinPoint(this._javaObject.setInlineComments(unwrapJoinPoint(p1))); }
/**
* Replaces the last child, or inserts the join point if no child is present
* Replaces the last child, or inserts the join point if no child is present. Returns the replaced child, or undefined if there was no child present.
*/
setLastChild(node: Joinpoint): void { return wrapJoinPoint(this._javaObject.setLastChild(unwrapJoinPoint(node))); }
setLastChild(node: Joinpoint): Joinpoint { return wrapJoinPoint(this._javaObject.setLastChild(unwrapJoinPoint(node))); }
/**
* Sets the type of a node, if it has a type
*/
Expand Down
Loading

0 comments on commit 4febde6

Please sign in to comment.