MacroUtilDeclarationBuilderExtension extension

on
  • DeclarationBuilder

Methods

deAliasedTypeDeclarationOf(NamedTypeAnnotation type) Future<TypeDeclaration>

Available on DeclarationBuilder, provided by the MacroUtilDeclarationBuilderExtension extension

Follows the declaration of type through any type aliases.
introspectField(FieldDeclaration field) Future<FieldIntrospectionData?>

Available on DeclarationBuilder, provided by the MacroUtilDeclarationBuilderExtension extension

Introspects the field.
introspectFields(TypeDeclaration type) Future<Map<String, FieldIntrospectionData>>

Available on DeclarationBuilder, provided by the MacroUtilDeclarationBuilderExtension extension

Introspects type and returns FieldIntrospectionData for all its fields mapped by their names.
log(Object? obj) → void

Available on DeclarationBuilder, provided by the MacroUtilDeclarationBuilderExtension extension

Logs obj as a comment in the library's global code.
nonObjectSuperclassDeclarationOf(ClassDeclaration clazz) Future<ClassDeclaration?>

Available on DeclarationBuilder, provided by the MacroUtilDeclarationBuilderExtension extension

Returns the ClassDeclaration for the superclass of clazz unless it's Object explicitly or implicitly.
unaliasedTypeDeclarationOf(NamedTypeAnnotation type) Future<TypeDeclaration>

Available on DeclarationBuilder, provided by the MacroUtilDeclarationBuilderExtension extension

Follows the declaration of type through any type aliases.