ContextWriter class

BuildContext dart文件的编写器

该Writer会扫描注解为BootContext的dart文件,然后创建一个.g.dart文件

@Author luodongseu

Inheritance

Constructors

ContextWriter()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
typeChecker TypeChecker
read-onlyinherited

Methods

generate(LibraryReader library, BuildStep buildStep) FutureOr<String>
Generates Dart code for an input Dart library.
inherited
generateForAnnotatedElement(Element element, ConstantReader annotation, BuildStep buildStep) String
Implement to return source code to generate for element.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

initializerLoaded bool
read / write