| main = <No Member>; |
| library from "org-dartlang-test:///cycle.dart" as cyc { |
| |
| import "package:macros/macros.dart"; |
| import "org-dartlang-test:///error_one.dart"; |
| |
| macro class AnyMacro extends dart.core::Object implements #lib1::ClassDeclarationsMacro /*hasConstConstructor*/ { |
| const constructor •() → cyc::AnyMacro |
| : 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 'AnyMacro' 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. |
| // @AnyMacro() |
| // ^ |
| // |
| |
| import "org-dartlang-test:///cycle.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::AnyMacro {} |
| } |
| |
| |
| Constructor coverage from constants: |
| org-dartlang-test:///error_one.dart: |
| - AnyMacro. (from org-dartlang-test:///cycle.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 'AnyMacro' 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. |
| @AnyMacro() |
| ^ |