-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Labels
area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).Dart language related items (some items might be better tracked at github.com/dart-lang/language).feature-macrosImplementation of the macros featureImplementation of the macros featurepkg-macrosThe experimental package:_macros libraryThe experimental package:_macros librarytype-questionA question about expected behavior or functionalityA question about expected behavior or functionality
Description
Example:
enum A {
a,
b,
c;
}
class B {
@CMacro<A>(A.c)
// ^ Not supported: PrefixedIdentifierImpldart(macro_application_argument_error)
static final key = 'object.location';
}macro class CMacro<T> implements FieldDeclarationsMacro {
const CMacro(this.value);
final T value;
@override
FutureOr<void> buildDeclarationsForField(FieldDeclaration field, MemberDeclarationBuilder builder) {
}
}I don't know if it works as intended but I coudn't find any information.
So this issue more like a question: is this gonna be supported later?
Metadata
Metadata
Assignees
Labels
area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).Dart language related items (some items might be better tracked at github.com/dart-lang/language).feature-macrosImplementation of the macros featureImplementation of the macros featurepkg-macrosThe experimental package:_macros libraryThe experimental package:_macros librarytype-questionA question about expected behavior or functionalityA question about expected behavior or functionality
Type
Projects
Status
Done