Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

class ParentNode(context : ASTNode,...) {
...
lazy val c1 = new ChildNode(this, ...other args)
...
}

This is the style one would commonly see as the pattern for the way constructors are called.

...