Konstantin Shcheglov
d6824468f9
Prepare to publish analyzer 1.4.0 and _fe_analyzer_shared 20.0.0.
...
Change-Id: Ifdf4371221776da3ede6c28f2938eb51d19f61da
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193898
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2021-04-08 03:27:54 +00:00
Konstantin Shcheglov
4a04e0ae3d
Prepare to publish analyzer 1.3.0 and _fe_analyzer_shared 19.0.0.
...
Change-Id: Ic0983c724e01ca11d1eb72cd9e5424a74874dcc9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192862
Reviewed-by: Kevin Moore <kevmoo@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2021-03-24 06:13:43 +00:00
Konstantin Shcheglov
6b575c72ec
Prepare to publish analyzer 1.2.0 and _fe_analyzer_shared 18.0.0.
...
Change-Id: If31ece2507cfb012d5742aa147df2ca781b4f712
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/191303
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Janice Collins <jcollins@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2021-03-15 22:58:54 +00:00
Konstantin Shcheglov
49642ffaa9
Prepare to publish analyzer 1.1.0 and _fe_analyzer_shared 17.0.0.
...
Change-Id: I8a79e77d70ad780f5c5b3c3b6cc08f993a5ff16e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/187560
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2021-02-25 20:59:57 +00:00
Konstantin Shcheglov
1faa9f0f8c
Prepare to publish analyzer 1.0.0 and _fe_analyzer_shared 16.0.0.
...
Change-Id: I07d357397cd6bd1ed240256efe5f19ed44111148
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/184001
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2021-02-10 19:46:55 +00:00
Konstantin Shcheglov
557112403e
Prepare to publish analyzer 0.42.0-nullsafety.0 and _fe_analyzer_shared 15.0.0.
...
Bug: https://github.com/dart-lang/sdk/issues/44290
Change-Id: I3e1be773b4a8b2ec4be2eb93608b10d26858db9a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/183143
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2021-02-08 19:51:15 +00:00
Parker Lougheed
500e99c988
Fix _fe_analyzer_shared sdk constraint
...
This was causing issues as I believe 2.12 takes precedent over pre-releases with -x.
Change-Id: I4ca2433e266998782cdf3f677dbefd3149a1a054
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175940
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-12-13 20:13:37 +00:00
Konstantin Shcheglov
3d67e6f998
Migrate _fe_analyzer_shared to null safety.
...
Some notes.
1. `Token.next` is `Token?` because there are null(s) for comment tokens.
But I think that it is never `null` in code, because there is at
least EOF token. So, lots of `!` null checks.
2. `Link.tail` is never null when `isNotEmpty`, but the type system
cannot express it. So, some number of `!` null checks.
3. I keep assert(s) for now, and use comment
`// ignore: unnecessary_null_comparison`.
4. I disabled `can_get_rid_of_nnbd_issue_error`, I think it fails
because of changes in `_fe_analyzer_shared` language version.
Smoke test in google3 looks green.
https://test.corp.google.com/ui#id=OCL:346825148:BASE:346841611:1607632317129:6e87bf7
I have not tried yet full TAP, will do in the evening.
I have not tried yet Golem, or looked at benchmarks.
Change-Id: I651301e5d3a851dd77d73af960dac779cb0fc991
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175620
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
2020-12-12 03:22:29 +00:00
Janice Collins
951046f94b
Update lower SDK constraint of analyzer packages to 2.9.
...
2.9 is two stable versions behind current, as discussed in
the analyzer standup.
Change-Id: I403460ff1621ccfa07192ae4dcf3fa89bf45b152
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/174861
Auto-Submit: Janice Collins <jcollins@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2020-12-02 22:48:57 +00:00
Paul Berry
1779cc86d2
Rework flow analysis unit tests based on a mini-AST representation.
...
In preparation for some flow anaylsis work I intend to do this month,
I want to make the flow analysis unit tests easier to understand and
maintain. This CL creates an AST representation that models just
enough of the Dart language to be able to do flow analysis testing, so
that when reading or writing a flow analysis unit test, instead of
having to remember the correct sequence of calls to FlowAnalysis to
model a given construct, you can just create a mini-AST representation
of the given construct and pass it to the flow analysis test harness.
The mini-AST model for expressions contains methods that can be used
to build larger expressions out of smaller ones, so a lot of code can
be modeled compactly. For example, to create a mini-AST model of the
statement `x = y && z == null;`, call
`x.write(y.read.and(z.read.eq(nullLiteral()))).stmt`.
Change-Id: I11e3882078fdc5797176019398db48011232cf35
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/174560
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2020-12-01 22:41:56 +00:00
Konstantin Shcheglov
295a9a856e
Prepare to publish analyzer 0.41.1 and _fe_analyzer_shared 14.0.0.
...
Change-Id: I3d103aa01f306b9f9ad1118fb56c392cf0cded7b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/174380
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-11-30 20:14:43 +00:00
Konstantin Shcheglov
d1cc9b6f27
Prepare to publish analyzer 0.41.0 and _fe_analyzer_shared 13.0.0.
...
Change-Id: I26118cd7bac02e649e64df7cd0b93c2203e2f954
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/172100
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-11-14 00:26:54 +00:00
Konstantin Shcheglov
47a2ab2866
Prepare to publish analyzer 0.40.5 and _fe_analyzer_shared 12.0.0.
...
Change-Id: I58b8b62dd33343896900d398d8066777bb12e768
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169260
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-10-27 19:12:27 +00:00
Konstantin Shcheglov
2b246127f7
Prepare to publish analyzer 0.40.4 and _fe_analyzer_shared 11.0.0.
...
Change-Id: I19d92bf9f107a82826c2d6d41f18315f25afc411
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/165040
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-09-29 18:46:27 +00:00
Konstantin Shcheglov
b53d016f71
Prepare to publish analyzer 0.40.3 and _fe_analyzer_shared 10.0.0.
...
Bug: https://github.com/dart-lang/sdk/issues/43550
Change-Id: I555a958c14eb435ab6a8522e89cd90dd851da2c1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/164600
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-09-25 17:52:29 +00:00
Konstantin Shcheglov
ebc055b4d2
Prepare to publish analyzer 0.40.1 and _fe_analyzer_shared 9.0.0.
...
R=brianwilkerson@google.com , devoncarew@google.com
Change-Id: I2cf281ef7a3238e0313b6ab7aa9634278f72f122
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161420
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-09-01 22:04:12 +00:00
Konstantin Shcheglov
a51f1747e0
Prepare to publish analyzer 0.40.0 and _fe_analyzer_shared 8.0.0.
...
Change-Id: I126207dcc47885565a3a6d7002ff15ad3cc493c5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122483
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-08-18 15:12:10 +00:00
Konstantin Shcheglov
0412862a9f
Prepare to publish analyzer 0.39.17 and _fe_analyzer_shared 7.0.0.
...
R=brianwilkerson@google.com , pquitslund@google.com
Change-Id: Ie87fc587ac7f9b83f2853e9cd0b4704bafd9fa71
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/158146
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-08-11 19:00:02 +00:00
Konstantin Shcheglov
01294566d4
Prepare to publish analyzer 0.39.14 and _fe_analyzer_shared 6.0.0.
...
R=brianwilkerson@google.com , pquitslund@google.com
Change-Id: I6f5e92ab29f757294a18dfff17c14745999bfa1d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155065
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-21 00:51:14 +00:00
Konstantin Shcheglov
7ee4dd1be5
Prepare to publish analyzer 0.39.11 and _fe_analyzer_shared 5.0.0.
...
R=brianwilkerson@google.com , paulberry@google.com
Change-Id: Ia7cb0355c2595ba6f84f19f6f62b468ccd6d7d72
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152986
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-06-30 23:14:37 +00:00
Paul Berry
ad044b8a4f
Prepare to publish analyzer 0.39.9 and _fe_analyzer_shared 4.0.0.
...
Change-Id: Idb30ab930d408423f2865a71ca3da0b3daf464da
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149742
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2020-06-02 20:20:43 +00:00
Paul Berry
f4efe7bdb8
Prepare to publish analyzer 0.39.8
...
Change-Id: I6712e973c11da7e443a12ccda86aa411781bdf75
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/145024
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Janice Collins <jcollins@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2020-04-28 17:18:02 +00:00
Paul Berry
188a6a1e20
Prepare to publish analyzer 0.39.7
...
Change-Id: I851057811c88c51e766c49df9695442023b6d3f0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143561
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2020-04-15 19:50:09 +00:00
Paul Berry
d8fcc657ee
Prepare to publish analyzer 0.39.6.
...
Change-Id: Iec8274e7997191061e0ff657c7536406a6c7367c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/142702
Commit-Queue: Paul Berry <paulberry@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Auto-Submit: Paul Berry <paulberry@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2020-04-07 19:38:16 +00:00
Paul Berry
47293f3030
Prepare to publish analyzer 0.39.5
...
Change-Id: Ib5c8319fab68d52bdf06d72678647e9212597c8a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/142323
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2020-04-03 17:28:47 +00:00
Paul Berry
77e0d7f400
Prepare to publish analyzer 0.39.4
...
Change-Id: I0be9c2601dc1cc2fa3aa2c17bda03d04a841c266
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/130732
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Janice Collins <jcollins@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2020-01-08 22:48:05 +00:00
Paul Berry
ed1e5220c2
Remove deprecated "author" section from _fe_analyzer_shared pubspec.yaml.
...
This addresses a nuisance warning when publishing the package.
See https://github.com/dart-lang/sdk/issues/40007 .
Change-Id: I7ba813a827af08033c7884153533cb19aa8e3211
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/130624
Auto-Submit: Paul Berry <paulberry@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2020-01-08 17:20:10 +00:00
Paul Berry
72a0324b67
Prepare to publish analyzer 0.39.3
...
Change-Id: I4d5ded23383b1a823759a31dd1d3c44979e79fb8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/130480
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
2020-01-07 20:55:46 +00:00
Paul Berry
d85eccb186
Prepare to publish analyzer 0.39.2.
...
Change-Id: I502e5256eb9f469e2d18a911624a3f8ebf0df972
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127440
Commit-Queue: Paul Berry <paulberry@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Janice Collins <jcollins@google.com >
2019-12-06 17:46:20 +00:00
Paul Berry
29ab43e0e2
Move flow_analysis tests into package:_fe_analyzer_shared.
...
Change-Id: I3f95b1124ceb5c465a88e30bd161c0a2832a9772
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123625
Reviewed-by: Jens Johansen <jensj@google.com >
2019-10-31 13:05:53 +00:00
Paul Berry
499815842c
Create a package to hold code shared between front_end and analyzer.
...
Previously such shared code was in the front_end package, but that
created problems because there is a lot of code in front_end that
isn't intended to be shared with the analyzer (including, notably, the
dependency on kernel).
This CL just moves over the flow_analysis logic to the new shared
package. Follow-up CLs will move over other shared logic and tests.
The end goal is that the analyzer package will no longer have a
dependency on front_end.
Change-Id: I5642d6565204422d79808ca47648462db85e442a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123624
Reviewed-by: Jens Johansen <jensj@google.com >
2019-10-31 13:05:53 +00:00