We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable defining delta's like this:
trait Compilation { def visit<T>(action: T => ()) { } def getFactory<T>: T } trait BlockStatementFactory { def create(statements: Seq[Node]): BlockStatement } trait BlockStatement { def statements: Seq[Node] def statements_(statements: Seq[Node]): Unit } object BlockDelta extends LanguageExtension { def factoryType = typeTag[BlockStatementFactory] def tranformProgram(compilation: Compilation) { val blockFactory = compilation.getFactory(factoryType) program.visit<BlockStatement>(block => { val newStatements = blockFactory.create(Seq.empty[Node]) block.statements = Seq(newStatements); }); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Enable defining delta's like this:
The text was updated successfully, but these errors were encountered: