ApiGenerator class

Constructors

ApiGenerator()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
throwOnUnresolved bool
finalinherited
typeChecker → TypeChecker
no setterinherited

Methods

generate(LibraryReader library, BuildStep buildStep) FutureOr<String>
Generates Dart code for an input Dart library.
inherited
generateForAnnotatedElement(Element element, ConstantReader annotation, BuildStep buildStep) → dynamic
Implement to return source code to generate for element.
getGenerateContent(ConstantReader annotation) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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

baseUrl String
getter/setter pair
functions List<Map<String, dynamic>>
getter/setter pair
importMap Map<String, bool>
getter/setter pair
imports List<Map<String, dynamic>>
getter/setter pair
mergeByBaseUrl bool
getter/setter pair

Static Methods

addDocumentImport(Element element, BuildStep buildStep) → void
解析注释中的import信息 简单处理规则->'import '开头,';'结尾的认为是import信息
addImport(BuildStep buildStep, String path) → void