pub repository
mirror.p-hatan.irmacros
0.1.2-main.0This package is for macro authors, and exposes the APIs necessary to write a macro. It exports the APIs from the private `_macros` SDK vendored package.
This package is discontinued upstream.
Readme
☠☠ Warning: This package is experimental and may not be available in a future version of Dart. ☠☠
This package is for macro authors, and exposes the APIs necessary to write
a macro. Specifically, it exports the private _macros SDK vendored package.
Macro authors
Macro authors can use normal constraints on this package, and should only import
the package:macros/macros.dart file.
Note that the versions of this package are tied directly to your SDK version, so you won't be able to get new feature releases without updating your SDK.
Compilers and tools
This package also exposes some "private" sources (under lib/src), intended only for use by compilers and tools, in order to bootstrap and execute macros.
When depending on these "private" sources, a more narrow constraint should be
used, which constraints to feature releases (which means patch versions until
such time as this package goes to 1.0.0). For example,
macros: ">=0.1.1 <0.1.2".
Changelog
0.1.2-main.0
- Remove type parameter on internal
StaticTypeimplementation.
0.1.1-main.0
- Add identifiers to
NamedStaticType. - Add
StaticType.asInstanceOf.
0.1.0-main.7
- Fix for generating code after extendsType
0.1.0-main.6
- Add extendsType API for adding an extends clause.
- Refactor builder implementations, fixes some bugs around nested builders.
0.1.0-main.5
- Handle ParallelWaitError with DiagnosticException errors nicely.
- Fix a bug where we weren't reporting diagnostics for nested builders.
0.1.0-main.4
- Improve formatting of constructor initializer augmentations.
0.1.0-main.3
- Validate parts in
Code.fromParts().
0.1.0-main.2
- Add caching for
typeDeclarationOfresults.
0.1.0-main.1
- Add caching for
TypeDeclarationrelated introspection results.
0.1.0-main.0
Initial release, highly experimental at this time.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add macrospubspec.yaml
name: macros
version: 0.1.2-main.0
description: >-
This package is for macro authors, and exposes the APIs necessary to write
a macro. It exports the APIs from the private `_macros` SDK vendored package.
repository: https://github.com/dart-lang/sdk/tree/main/pkg/macros
environment:
sdk: ^3.4.0-256.0.dev
dependencies:
_macros:
sdk: dart
version: 0.3.0
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.0.1 | 2024-02-02T10:31:22.735424Z | Download | 7b325774acb0c6943d738b9573dd4241f0b726a60312cf0837227b63460fd726 |
| 0.1.0-main.0 | 2024-04-09T20:35:09.503902Z | Download | 12e8a9842b5a7390de7a781ec63d793527582398d16ea26c60fed58833c9ae79 |
| 0.1.0-main.1 | 2024-04-09T20:40:36.884768Z | Download | 093b9c854e91f1ce25cb632766a5269fbffa67c937b00f6777cca6c3c580f5a4 |
| 0.1.0-main.2 | 2024-04-09T17:05:05.686317Z | Download | dd3e89cdc7808ef87f90c865f63791be7ecd8269a38203e07fe5d748e88a1367 |
| 0.1.0-main.3 | 2024-04-17T06:29:45.533208Z | Download | e4a273c4a7a81fdbea1f3faed45faa6a7c0b78a50076e89d3f02350caefc8939 |
| 0.1.0-main.4 | 2024-05-08T14:56:05.374636Z | Download | 9e78a8aa6f95510fff9210f7d5005ad0ad36af4d2cc54cb45a0e39b35b6fc5e9 |
| 0.1.0-main.5 | 2024-05-08T18:19:03.208535Z | Download | a8403c89b36483b4cbf9f1fcd24562f483cb34a5c9bf101cf2b0d8a083cf1239 |
| 0.1.0-main.6 | 2024-05-24T18:23:57.725384Z | Download | 544d8a13f92648522aa57aa6b4e349bf9ac8d6d4dc21c1c04992dd48ae9c7f8e |
| 0.1.0-main.7 | 2024-05-28T14:12:16.145028Z | Download | 1a02505931d4413a9f590b62463fddaa9167791a9f5c4f220c2a64276fac0b47 |
| 0.1.1-main.0 | 2024-05-28T15:25:27.660793Z | Download | 071c0d3651bd8c3e17f5338642e6c281e6bf3f267ccb724c7e827e4a0b00d018 |
| 0.1.2-main.0 | 2024-05-30T13:55:03.569270Z | Download | 56dbee7418e9441a669ae47f72c0a31085a69eee5b42d2163509711a867e2b14 |
| 0.1.2-main.2 | 2024-06-13T14:28:26.203836Z | Download | e1507c06a4f80186ea75630599392c7673a821ef584a1db6e14e7ebe289868a7 |
| 0.1.2-main.3 | 2024-06-13T19:53:21.998602Z | Download | 6245feb91dfa3693100d2e680f6c5614405b1623b555b4b3cba3cb88a3beb5c2 |
| 0.1.2-main.4 | 2024-06-21T14:28:42.457442Z | Download | 0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536 |
| 0.1.3-main.0 | 2024-09-04T20:21:18.321046Z | Download | 1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656 |
Dependencies
_macros {
"sdk": "dart",
"version": "0.3.0"
}