hubbub library

Classes

HubbubAstVisitor<T>
Traverses an entire Hubbub AST.
HubbubNodeReplacer
Replaces one node with another.
HubbubParser
HubbubParserAdapter
RecursiveHubbubAstVisitor<T>
Recursively visits nodes, doing nothing by default.
RemoteHubbubResult
The result of processing a Hubbub source.
RemoteHubbubSource
A request to process Hubbub sources.
RemoteHubbubTransformer
Interfaces with a Hubbub plugin via JSON RPC 2.0.
SimpleHubbubAstVisitor<T>
Does nothing when visiting nodes by default.
TemplateLiteral
A Hubbub-specific literal. Consists of a SimpleIdentifier, followed by a StringLiteral.
TransformationEngine
Facilitates interfacing with Hubbub plugins via JSON RPC 2.0.

Constants

hubbubMethod → const String
The JSON-RPC 2.0 method used by Hubbub.
'hubbub'

Properties

astFactory AstFactory
Gets an instance of AstFactory based on the standard AST implementation.
final

Functions

chainTransformers(Iterable<FutureOr<CompilationUnit> Function(CompilationUnit)> transformers) → Future<CompilationUnit> Function(CompilationUnit)
Chains together multiple transformers.
hubbub(SendPort sendPort, FutureOr<CompilationUnit> transformer(CompilationUnit)) → Future<void>
Listens for RPC requests, and transforms Hubbub on-the-fly.
hubbubRaw(SendPort sendPort, FutureOr<String> transformer(RemoteHubbubSource)) → Future<void>
Listens for RPC requests, and transforms Hubbub on-the-fly using a custom transformer.
parseCompilationUnit(String contents, { String name, bool suppressErrors: false, bool parseFunctionBodies: true, FeatureSet featureSet }) CompilationUnit