Skip to content

Improve the code for the generation of Javascript code #8

@dmytro-grankin

Description

@dmytro-grankin

The code for the generation of Javascript was improved in SpineEventEngine/base#255.

But still there is a place for other improvements:

  • Snippet.value() should return an immutable result. Now, it returns mutable CodeLines.
  • CodeLines should not contain methods to compose code (enterMethod, enterBlock etc). Instead, such a functionality should be implemented by inheriting CodeLine (see RawLine) or by implementing Snippet (see Method).
  • Remove JsCodeGenerators and use Snippet instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions