ApiGenerator class

Inheritance

Constructors

ApiGenerator()

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) → dynamic
Implement to return source code to generate for element.
override
getGenerateContent(ConstantReader annotation) String
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

baseUrl String
read / write
functions List<Map<String, dynamic>>
read / write
importMap Map<String, bool>
read / write
imports List<Map<String, dynamic>>
read / write
mergeByBaseUrl bool
read / write

Static Methods

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