Robert Nystrom
328f1be1fe
Opt package:meta in to null safety.
...
This is done by setting the SDK constraint min version in the package's
pubspec to 2.9.0 which is the version that CFE currently uses to mean
"opt in".
However, the pre-built SDK currently checked into the repo can't handle
that version. To work around that, this CL has a gross hack to simply
omit the language version in the generated package config if the
pubspect's version is 2.9. This has the effect of telling CFE to use
the current language version, which is what we want, while also allowing
us to put the right SDK constraint in the package's pubspec.
Change-Id: I51c2952003c83b74fb6f3344c93839fbd267a3ec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/145020
Auto-Submit: Bob Nystrom <rnystrom@google.com >
Commit-Queue: Leaf Petersen <leafp@google.com >
Reviewed-by: Leaf Petersen <leafp@google.com >
2020-04-28 03:54:48 +00:00
pq
2d7235c14d
typos
...
Change-Id: Idbbd0ad4d6097f7c1c5a70de5f3fa4c2d13ff2c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/130061
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2020-01-02 23:09:17 +00:00
pq
a688de0371
Add deprecated member messages
...
Change-Id: I8efa2244b3f03a1af44eca93ed4441a255c6cb68
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/129923
Commit-Queue: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-01-02 15:41:26 +00:00
pq
6a8ab6a858
Remove unnecessary const modifiers
...
Change-Id: I2187b009abc150d8e361d00c673099ec7b4147f4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/129924
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2020-01-02 00:48:55 +00:00
pq
4b5e3e6dde
meta 1.1.8
...
Change-Id: I36193146774e970e510c38313474e1c8c4486118
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122848
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2019-10-30 14:11:14 +00:00
pq
5812bf4688
remove “implements” condition
...
Change-Id: I21f571e0490bcfd43ed84f84fb08f8b6659c836d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122840
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2019-10-24 18:19:22 +00:00
pq
d43cd7e909
+ @nonVirtual
...
See: https://github.com/dart-lang/sdk/issues/34378
Change-Id: Ie61b8bddaef01cdbf47da9a8ca6915cbd86b21a7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122701
Commit-Queue: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2019-10-23 22:43:47 +00:00
Sam Rawlins
e9dcb9f45d
fix typo in factory; add mixin text for protected
...
Change-Id: Idab2890de1f128105a02d94a7512e4a22eba7023
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116050
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Auto-Submit: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2019-09-09 14:11:47 +00:00
Sam Rawlins
35c011c030
Update meta docs to consider mixins and static extensions
...
* Update optionalTypeArgs to consider mixins and static extensions
* Update visibleForOverriding to consider mixins
* Update visibleForTesting to consider private declarations, and
declarations on unnamed mixins
Bug: https://github.com/dart-lang/sdk/issues/38105
Change-Id: I50b87e0fafd7960abc945b240788b1a640f78621
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115067
Auto-Submit: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2019-09-04 04:01:47 +00:00
Vijay Menon
23dae9cca3
Make package:meta NNBD agnostic
...
Minor changes to pass analysis with --experiment=non-nullable on.
Change-Id: I17cafbc4f3a127fb755412883b889e5454387819
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/114400
Reviewed-by: Bob Nystrom <rnystrom@google.com >
Commit-Queue: Vijay Menon <vsm@google.com >
2019-08-23 19:23:41 +00:00
Sam Rawlins
af97015781
Fix markdown and Dart links in meta package
...
Right now they're dead. https://pub.dev/documentation/meta/latest/meta/meta-library.html
Change-Id: Iecc12075e56eb4caf115c34fdfb04d9b164ebe2f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/111865
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2019-08-02 21:08:59 +00:00
Jonas Termansen
7d6a3e0058
Fix http links to pub which has https.
...
Change-Id: I3b712014fb0744b890df426e941907760bd92780
Reviewed-on: https://dart-review.googlesource.com/c/88452
Reviewed-by: Jonas Jensen <jonasfj@google.com >
Commit-Queue: Jonas Termansen <sortie@google.com >
2019-01-07 11:37:19 +00:00
Sam Rawlins
359217d30d
Correct doc comment for sealed
...
As per discussion at https://github.com/dart-lang/sdk/issues/34232
Bug: https://github.com/dart-lang/sdk/issues/34232
Change-Id: Ib0a7207a43167b5e69973fc3abffa197e0bdafe5
Reviewed-on: https://dart-review.googlesource.com/c/88289
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2019-01-03 21:21:20 +00:00
Sam Rawlins
31fa815dca
Remove sealed ability on mixin
...
Change-Id: I69f59dfaa18d77fcd53f82b71a79c567102a9b66
Reviewed-on: https://dart-review.googlesource.com/c/88200
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2019-01-03 01:51:35 +00:00
Brian Wilkerson
e58e3fbb55
Deprecate the "virtual" annotation
...
Change-Id: I3fa88a70f36c769be3649ea7d40d280e6cf6b633
Reviewed-on: https://dart-review.googlesource.com/c/84443
Reviewed-by: Nate Bosch <nbosch@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2018-11-14 20:12:37 +00:00
Stephen Adams
ded73cdd08
Revert "[dart2js] Simplify noInline / tryInline annotations"
...
This reverts commit 8bae3a1cfd .
There are versioning issues that need to be addressed.
TBR=kevmoo@google.com
Change-Id: Ia82e94f127523db650e4df03af1179ef94463bee
Reviewed-on: https://dart-review.googlesource.com/76564
Reviewed-by: Stephen Adams <sra@google.com >
Reviewed-by: Kevin Moore <kevmoo@google.com >
Commit-Queue: Stephen Adams <sra@google.com >
2018-09-25 22:11:42 +00:00
Stephen Adams
8bae3a1cfd
[dart2js] Simplify noInline / tryInline annotations
...
Use @pragma for dart2js.noInline / dart2js.tryInline
Change-Id: Id7932ad7f85b91e4c1e427bb88e782ede81d5926
Reviewed-on: https://dart-review.googlesource.com/76341
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Stephen Adams <sra@google.com >
2018-09-25 19:08:14 +00:00
Sam Rawlins
dfce7e26a4
Use uppercase example class names in meta
...
Change-Id: I21f4ff480648cd0e2e3f732fd56ec6e3564d93fc
Reviewed-on: https://dart-review.googlesource.com/71230
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2018-08-23 00:33:55 +00:00
Sam Rawlins
76ae676a23
Fix meta CHANGELOG and doc comment after feedback
...
Bug: https://github.com/dart-lang/sdk/issues/27372
Change-Id: If532ad81e833589642b696b5ef0c291ccaac1e3e
Reviewed-on: https://dart-review.googlesource.com/71121
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2018-08-22 15:22:58 +00:00
Sam Rawlins
537a6f1411
Introduce @sealed annotation
...
This annotation will act as an easy way for users to experiment with a language
feature under consideration, called "sealed classes."
Bug: https://github.com/dart-lang/sdk/issues/27372
Change-Id: Ieb8bc70edaf8c11c41f0f47c01951e8311736c1f
Reviewed-on: https://dart-review.googlesource.com/69601
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com >
Reviewed-by: Erik Ernst <eernst@google.com >
Reviewed-by: Leaf Petersen <leafp@google.com >
2018-08-22 04:03:22 +00:00
pq
f40988e508
fix changelog for meta (pre-publish)
...
Change-Id: Iec78c8ef73d148806438cdf8eb8226f4c1e36335
Reviewed-on: https://dart-review.googlesource.com/65601
Reviewed-by: Kevin Moore <kevmoo@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2018-07-18 22:13:43 +00:00
pq
d533cef4b8
bump meta sdk constraint
...
Change-Id: I70dd4c24970f8b7a1c3bb10cfce3c289a4177193
Reviewed-on: https://dart-review.googlesource.com/65024
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2018-07-16 13:32:20 +00:00
Devon Carew
11e001595a
Update analysis options files.
...
Change-Id: I06b659b5ee7105d3f11343259f787194f1d2bd79
Reviewed-on: https://dart-review.googlesource.com/63501
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2018-07-03 00:20:06 +00:00
pq
4b89ba24fb
Meta CHANGELOG markdown cleanup.
...
(Prefered style is to surround lists with blank lines.)
Change-Id: I96e5d6715e056e3dd531059e86262e1028b51209
Reviewed-on: https://dart-review.googlesource.com/53689
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2018-05-03 20:52:40 +00:00
Konstantin Shcheglov
0dc81ae4eb
Publish package:meta 1.1.5
...
R=devoncarew@google.com
Bug: https://github.com/flutter/flutter-intellij/issues/2055
Change-Id: I560f3e4664fd61bd2ab9b3b3fa49c8731d3331d8
Reviewed-on: https://dart-review.googlesource.com/53683
Reviewed-by: Devon Carew <devoncarew@google.com >
2018-05-03 20:00:44 +00:00
Konstantin Shcheglov
f64ba0cadd
Add @isTest and @isTestGroup to package:meta
...
R=devoncarew@google.com , paulberry@google.com
Bug: https://github.com/flutter/flutter-intellij/issues/2055
Change-Id: I78083783a3e05171746253101b3b10bbdcc8ef99
Reviewed-on: https://dart-review.googlesource.com/53480
Reviewed-by: Paul Berry <paulberry@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2018-05-03 04:39:04 +00:00
Brian Wilkerson
7ed0bccca8
Add a README file to the meta package
...
Change-Id: Id8e9587a0a0f3573dcc713c9244c11d0d142a494
Reviewed-on: https://dart-review.googlesource.com/30140
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2017-12-17 21:53:17 +00:00
Sam Rawlins
0d876c60ad
Add a changelog entry for meta 1.0.5
...
Bug: https://github.com/dart-lang/sdk/issues/29220
Change-Id: I980fd5820d94803862aadd7c53a97daf864736d2
Reviewed-on: https://dart-review.googlesource.com/29180
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2017-12-15 23:40:03 +00:00
Stephen Adams
4babd94282
Update dart2js.noInline docs
...
Change-Id: Id6870b405d2a379c221a3fc493adc547c84c450b
Reviewed-on: https://dart-review.googlesource.com/18506
Commit-Queue: Stephen Adams <sra@google.com >
Reviewed-by: Stephen Adams <sra@google.com >
Reviewed-by: Kevin Moore <kevmoo@google.com >
2017-11-03 19:04:20 +00:00
Stephen Adams
b3a93f44eb
Add dart2js noInline and tryInline annotations to package:meta
...
There will be a follow-up change to remove NoInline from package:expect.
Change-Id: I6dc33241ea6d8b6a8994da6a8ec5295dab30f4da
Reviewed-on: https://dart-review.googlesource.com/17043
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2017-10-27 21:21:13 +00:00
Konstantin Shcheglov
6869702dae
Deprecate @checked in package:meta, use covariant instead.
...
R=brianwilkerson@google.com , paulberry@google.com
Bug:
Change-Id: I024d15a804a394efbb3a982d6205f30d7385b89e
Reviewed-on: https://dart-review.googlesource.com/9781
Reviewed-by: Paul Berry <paulberry@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2017-09-30 01:25:15 +00:00
Kevin Moore
b7a9f2ae7c
Fix SDK constraints on analyzer, front_end, kernel, meta
...
Prepare to publish meta
Change-Id: I1bc564c68315fb2f27469deda76e75495e42c23b
Reviewed-on: https://dart-review.googlesource.com/9364
Reviewed-by: Kevin Moore <kevmoo@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
2017-09-28 19:33:27 +00:00
pq
70869b61f4
Update meta version pre-publish.
...
BUG=
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2981313002 .
2017-07-19 14:30:47 -07:00
pq
d5539d7d32
Update meta SDK constraint to be 2.0.0 dev friendly.
...
BUG=
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2983853003 .
2017-07-19 12:31:08 -07:00
Sam Rawlins
c9c5767630
Bump meta to 1.1.0
...
BUG=
R=nweiz@google.com
Review-Url: https://codereview.chromium.org/2973383002 .
2017-07-10 14:58:14 -07:00
Sam Rawlins
c6d6a69a78
Add an alwaysThrows annotation to indicate that a function always throws.
...
BUG=https://github.com/dart-lang/sdk/issues/17999
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2170643003 .
2017-06-13 12:42:25 -07:00
Paul Berry
f4d3f6cf45
Remove .iml files from the repository.
...
These files weren't providing enough benefit compared to the confusion
they were causing by showing up frequently in diffs.
R=brianwilkerson@google.com , scheglov@google.com
Review-Url: https://codereview.chromium.org/2878103002 .
2017-05-12 15:06:18 -07:00
danrubel
c8784af933
rename .analysis_options --> analysis_options.yaml
...
See https://github.com/dart-lang/sdk/issues/28385
R=brianwilkerson@google.com , vsm@google.com
Review-Url: https://codereview.chromium.org/2839383003 .
2017-04-30 18:33:10 -04:00
Devon Carew
93401fdbaf
Update IntelliJ metadata.
...
BUG=
R=scheglov@google.com
Review-Url: https://codereview.chromium.org/2845643002 .
2017-04-26 09:27:02 -07:00
Brian Wilkerson
8d340ee8c6
Add an experimental annotation
...
R=matanl@google.com
Review-Url: https://codereview.chromium.org/2789843003 .
2017-03-31 10:54:24 -07:00
Devon Carew
86a235e219
Add intellij metadata to the repo.
...
BUG=
R=pquitslund@google.com , scheglov@google.com
Review-Url: https://codereview.chromium.org/2689673003 .
2017-02-10 12:47:06 -08:00
Brian Wilkerson
37890f995f
Add a new annotation
...
R=pquitslund@google.com
Review URL: https://codereview.chromium.org/2420653002 .
2016-11-09 14:19:27 -08:00
Brian Wilkerson
f61a3eacc4
Add the @immutable annotation
...
R=pquitslund@google.com
Review URL: https://codereview.chromium.org/2476673004 .
2016-11-07 09:49:45 -08:00
John Messerly
865e808f15
support @virtual fields, fix #27384
...
R=leafp@google.com
Review URL: https://codereview.chromium.org/2352433002 .
2016-09-19 09:45:24 -07:00
John Messerly
05e945d1c0
follow up for #25578 , add @checked to package:meta
...
R=pquitslund@google.com
Review URL: https://codereview.chromium.org/2334413002 .
2016-09-13 17:26:24 -07:00
Konstantin Shcheglov
aecc42c793
Prepare for publishing meta 1.0.2 with @visibleForTesting.
...
R=brianwilkerson@google.com , pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org/2247673004 .
2016-08-15 11:58:59 -07:00
Konstantin Shcheglov
5ade4b47f9
Add @visibleForTesting annotation to meta.
...
R=brianwilkerson@google.com , pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org/2231993002 .
2016-08-10 13:23:32 -07:00
pq
1ec53e449c
Update @factory to allow for statics and nulls.
...
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org/2087953003 .
2016-06-21 15:33:07 -07:00
pq
93b7445309
Mark meta API as stable and bump to 1.0.0
...
BUG=
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org/2067643002 .
2016-06-13 15:48:13 -07:00
pq
bfd06cbd77
Extend @protected to include implemented interfaces.
...
Fixes: https://github.com/dart-lang/linter/issues/252 .
BUG=
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org/2031053002 .
2016-06-02 16:13:03 -07:00