blob: e3b30ce8648979546978b55c78a7d38ea4719687 [file] [log] [blame]
main = <No Member>;
library from "org-dartlang-test:///cycle_one.dart" as cyc {
import "package:macros/macros.dart";
import "org-dartlang-test:///error_one.dart";
macro class AnyMacroOne extends dart.core::Object implements #lib1::ClassDeclarationsMacro /*hasConstConstructor*/ {
const constructor •() cyc::AnyMacroOne
: super dart.core::Object::•()
;
method buildDeclarationsForClass(#lib1::ClassDeclaration clazz, #lib1::MemberDeclarationBuilder builder) → dart.async::Future<void> async /* emittedValueType= void */ {}
}
static get someOtherValue() dart.core::int
return err::someValue;
}
library from "org-dartlang-test:///error_one.dart" as err {
//
// Problems in library:
//
// org-dartlang-test:///error_one.dart:2:2: Error: The macro 'AnyMacroOne' can't be applied in the same library cycle where it is defined.
// Try moving it to a different library that does not import the one where it is applied.
// @AnyMacroOne()
// ^
//
import "org-dartlang-test:///cycle_one.dart";
@#C1
class A extends dart.core::Object {
synthetic constructor •() err::A
: super dart.core::Object::•()
;
}
static get someValue() dart.core::int
return 0;
}
constants {
#C1 = cyc::AnyMacroOne {}
}
Constructor coverage from constants:
org-dartlang-test:///error_one.dart:
- AnyMacroOne. (from org-dartlang-test:///cycle_one.dart:5:9)
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
holepunch:pkg/_macros/lib/src/api/builders.dart:
- Deprecated. (from org-dartlang-sdk:///sdk/lib/core/annotations.dart)
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
holepunch:pkg/_macros/lib/src/api/code.dart:
- CodeKind. (from holepunch:pkg/_macros/lib/src/api/code.dart:474:6)
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
holepunch:pkg/_macros/lib/src/api/diagnostic.dart:
- Severity. (from holepunch:pkg/_macros/lib/src/api/diagnostic.dart:93:6)
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
A total of 1 errors:
- org-dartlang-test:///error_one.dart:2:2: Error: The macro 'AnyMacroOne' can't be applied in the same library cycle where it is defined.
Try moving it to a different library that does not import the one where it is applied.
@AnyMacroOne()
^