public interface ISubEmitter<T>
IEmitter emitter can use composition for it's more
complicated production sequences with member, dynamic, binary expressions and
identifiers etc.| Modifier and Type | Method and Description |
|---|---|
void |
emit(T node)
The main emitter will call this method of the sub emitter with the
correct generic type implemented.
|
void emit(T node)
The main idea here is abstraction. Producing JavaScript can get complicated, the best way to avoid bugs is to avoid as much state and interdependence between emit() calls of the main emitter.
Copyright © 2021 The Apache Software Foundation. All rights reserved.