CodeRenderer class

Renders CodeClass IR nodes to Dart source strings.

The default two-space indentation matches the rest of the generated client.

Constructors

CodeRenderer({String indent = ' '})
Creates a renderer.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
indent String
Indentation string used at each nesting level.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderClass(CodeClass cls) String
Renders cls to a Dart class declaration string ending with a blank line.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited