p-hatan/ mirror

pub repository

mirror.p-hatan.ir

macros

0.1.0-main.2

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.

This package is discontinued upstream.

Download archive

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.0-main.2

  • Add caching for typeDeclarationOf results.

0.1.0-main.1

  • Add caching for TypeDeclaration related 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 macros
pubspec.yaml
name: macros
version: 0.1.0-main.2
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.1.2

Version history

VersionPublishedArchiveSHA-256
0.0.12024-02-02T10:31:22.735424ZDownload7b325774acb0c6943d738b9573dd4241f0b726a60312cf0837227b63460fd726
0.1.0-main.02024-04-09T20:35:09.503902ZDownload12e8a9842b5a7390de7a781ec63d793527582398d16ea26c60fed58833c9ae79
0.1.0-main.12024-04-09T20:40:36.884768ZDownload093b9c854e91f1ce25cb632766a5269fbffa67c937b00f6777cca6c3c580f5a4
0.1.0-main.22024-04-09T17:05:05.686317ZDownloaddd3e89cdc7808ef87f90c865f63791be7ecd8269a38203e07fe5d748e88a1367
0.1.0-main.32024-04-17T06:29:45.533208ZDownloade4a273c4a7a81fdbea1f3faed45faa6a7c0b78a50076e89d3f02350caefc8939
0.1.0-main.42024-05-08T14:56:05.374636ZDownload9e78a8aa6f95510fff9210f7d5005ad0ad36af4d2cc54cb45a0e39b35b6fc5e9
0.1.0-main.52024-05-08T18:19:03.208535ZDownloada8403c89b36483b4cbf9f1fcd24562f483cb34a5c9bf101cf2b0d8a083cf1239
0.1.0-main.62024-05-24T18:23:57.725384ZDownload544d8a13f92648522aa57aa6b4e349bf9ac8d6d4dc21c1c04992dd48ae9c7f8e
0.1.0-main.72024-05-28T14:12:16.145028ZDownload1a02505931d4413a9f590b62463fddaa9167791a9f5c4f220c2a64276fac0b47
0.1.1-main.02024-05-28T15:25:27.660793ZDownload071c0d3651bd8c3e17f5338642e6c281e6bf3f267ccb724c7e827e4a0b00d018
0.1.2-main.02024-05-30T13:55:03.569270ZDownload56dbee7418e9441a669ae47f72c0a31085a69eee5b42d2163509711a867e2b14
0.1.2-main.22024-06-13T14:28:26.203836ZDownloade1507c06a4f80186ea75630599392c7673a821ef584a1db6e14e7ebe289868a7
0.1.2-main.32024-06-13T19:53:21.998602ZDownload6245feb91dfa3693100d2e680f6c5614405b1623b555b4b3cba3cb88a3beb5c2
0.1.2-main.42024-06-21T14:28:42.457442ZDownload0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536
0.1.3-main.02024-09-04T20:21:18.321046ZDownload1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656

Dependencies

_macros { "sdk": "dart", "version": "0.1.2" }