Skip to content

Add a new Statement/Expression.raw(...) #895

@matanlurey

Description

@matanlurey

... to allow opt-outs for more advanced scenarios we won't/can't cover with builders.

Example use:

new ExpressionBuilder.raw('5 + 90 >> 2 | 3')
new StatementBuilder.raw(r'''
  switch (value) {
    case: ...
  }
''')

We also need to be able to support auto-scoping - we could use mustache:

new StatementBuilder.raw(r'''
  switch ({{value}}) {
    case 1:
      break;
    case 2:
      break;
  }
''')

Would ~roughly translate to:

switch ($scoped.value) {
  ...
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions