Commit Graph

270 Commits

Author SHA1 Message Date
Paul Berry ec47e524bc Switch to non-alpha versions for analyzer/front_end/kernel.
After some discussion, we decided that it's not necessary to publish
alpha versions when making non-breaking changes.  (The rationale for
publishing alpha versions is to minimize the number of breaking
changes, since breaking changes to a popular package can potentially
slow down pub's version solver, but this is not an issue for
non-breaking changes).

Change-Id: I3f4f975712af43b6b0475f2c68dc430c394454cb
Reviewed-on: https://dart-review.googlesource.com/57140
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-05-29 23:26:07 +00:00
Paul Berry 84fcf42c25 Bump analyzer version in preparation for publishing.
Change-Id: I1d794db9f086f8fb8830d7974b79653d549423c6
Reviewed-on: https://dart-review.googlesource.com/56708
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Janice Collins <jcollins@google.com>
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-05-29 17:47:46 +00:00
Janice Collins e6d9ed5688 Restrict analyzer/front_end/kernel SDK versions to dev.48+.
Change-Id: If341e8aa3503881bb44e445c39e5f821fd213bfd
Reviewed-on: https://dart-review.googlesource.com/55000
Reviewed-by: Kevin Moore <kevmoo@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Janice Collins <jcollins@google.com>
2018-05-14 19:32:45 +00:00
Janice Collins 90618bdcf3 Prepare for analyzer 0.32.0.
Change-Id: Ica117a443f922c9bb5377c99ff87ce4a7a0bce16
Reviewed-on: https://dart-review.googlesource.com/54741
Reviewed-by: Kevin Moore <kevmoo@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Janice Collins <jcollins@google.com>
2018-05-14 18:07:02 +00:00
Janice Collins 6d9371aec3 Prepare for analyzer-0.31.2-alpha.2
Change-Id: Ib428b7316633bb77978428a17956bc05e736d57d
Reviewed-on: https://dart-review.googlesource.com/52981
Commit-Queue: Janice Collins <jcollins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
2018-04-30 17:56:31 +00:00
Devon Carew 9968728df1 Remove package:cli_util deps from package:analyzer.
Change-Id: I6bda63e31b9a8eb3e7ede406bd7e3e5748130ff6
Reviewed-on: https://dart-review.googlesource.com/51362
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2018-04-16 20:26:08 +00:00
Devon Carew 3a5fcf5a87 Upgrade the dep on package:isolate.
Change-Id: Ie9c52c6dd24672e2469787220505bd85a50ed5ff
Reviewed-on: https://dart-review.googlesource.com/51241
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2018-04-16 17:08:48 +00:00
Brian Wilkerson 1560f19844 Fixes to make analyzer preview-dart-2 safe, part 1 of many
Change-Id: I8f88168a1fab61b3d0d808b5d9e09e6391325302
Reviewed-on: https://dart-review.googlesource.com/46953
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-03-19 13:15:46 +00:00
Mike Fairhurst 6f3b6bfb62 Do the rounds for new analyzer publish + fix analyzer_plugin.
I'm not sure -- I ticked analyzer to 0.32 from 0.31-alpha.

I think because of the new methods, this is the right call (though it
leaves us in the weird place where there was no stable publish of
0.31.2?)

Also not sure if I need to update any other downstream packages (args?
dart_style?). Seems like if so, those are all in other repos.

Change-Id: I512e6674549a99fdafe47f2138738463f4e66e37
Reviewed-on: https://dart-review.googlesource.com/46126
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
2018-03-12 23:02:29 +00:00
Janice Collins 121a8ebcb2 Prepare for analyzer 0.31.2-alpha.0.
Update changelog and versions prior to publish, primarily for the crash
in computeNode fixed by https://github.com/dart-lang/sdk/commit/3791ddb496a2d8c9ed9bc2edcc62e562c2e47eb2#diff-ff9cb85838db7a802ac5aa9c55f26d86.

Change-Id: If3bbe3238fb622d884cee5df87a06a90b401fe7e
Reviewed-on: https://dart-review.googlesource.com/41040
Commit-Queue: Janice Collins <jcollins@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-02-14 21:22:54 +00:00
Janice Collins 75a2661f0e Prepare to publish analyzer 0.31.1 and associated packages.
Verified that the new analyzer at least smoke-tests on .21 still,
so did not update SDK constraints.  Publish is to address
dart-lang/dartdoc#1603.

Change-Id: I39320e5557344f6c1c79df50b792246fc1c29840
Reviewed-on: https://dart-review.googlesource.com/40401
Commit-Queue: Janice Collins <jcollins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2018-02-09 18:29:29 +00:00
Kevin Moore ad1b16e502 Prepare to release package:analyzer 0.31.0+1
Corrects SDK constraint

Change-Id: Ia6b48ee223760ceccac07e8c020d7398fd4b2f29
Reviewed-on: https://dart-review.googlesource.com/38360
Reviewed-by: Devon Carew <devoncarew@google.com>
2018-02-02 23:16:24 +00:00
Kevin Moore ca7996f033 Prepare to publish package:analyzer 0.31.0
Includes version bumps to kernel and front_end

Fixes https://github.com/dart-lang/sdk/issues/32022

Change-Id: I2e09d9184f6446b6f442e3a4188aa15da80b9601
Reviewed-on: https://dart-review.googlesource.com/38345
Reviewed-by: Devon Carew <devoncarew@google.com>
2018-02-02 22:43:30 +00:00
Brian Wilkerson 725c3fad49 Update front_end and kernel before publishing
Change-Id: Ifea9db1f41e232136afe0c0eacdcc7c1a430e69d
Reviewed-on: https://dart-review.googlesource.com/24200
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2017-11-28 19:28:24 +00:00
Brian Wilkerson 5d80760472 Prepare to publish a new alpha version of analyzer
Change-Id: I1941665229f1d7db81002cf911f2b31d8339f25c
Reviewed-on: https://dart-review.googlesource.com/24161
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2017-11-28 18:19:35 +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
Brian Wilkerson f64000374d Update pubspecs prior to publishing
R=devoncarew@google.com, paulberry@google.com

Review-Url: https://codereview.chromium.org/3006623002 .
2017-08-25 13:24:17 -07:00
Konstantin Shcheglov bf25080cc1 Replace typed_mock with mockito in analyzer.
R=brianwilkerson@google.com
BUG=

Review-Url: https://codereview.chromium.org/2991913002 .
2017-07-27 16:15:17 -07:00
pq 6e45682ebb Analyzer 0.31.0-alpha.0
For analyzer, front_end and kernel packages:

* bump alpha versions
* update SDK constraints

R=brianwilkerson@google.com

Review-Url: https://codereview.chromium.org/2985103002 .
2017-07-26 13:18:14 -07:00
Kevin Moore 4d642466fb Update pkg/analyzer dependency on pkg/args to include v1.x
pkg/analyzer currently does not create an AgrParser so the breaking
behavior charge that came w/ the bump to args v1 does not affect any
code

R=brianwilkerson@google.com

Review-Url: https://codereview.chromium.org/2955583003 .
2017-06-23 11:47:01 -07:00
pq 7e7a446ec5 Bump analyzer version to latest published (0.30.0+2).
BUG=
R=brianwilkerson@google.com

Review-Url: https://codereview.chromium.org/2897783002 .
2017-05-22 06:11:00 -07:00
pq ba1a6e39f3 Update to fresh cli_util (0.1.0).
BUG=
R=devoncarew@google.com

Review-Url: https://codereview.chromium.org/2894433002 .
2017-05-17 11:04:29 -07:00
Devon Carew af7f15e633 package:kernel version change 0.3.0-dev.1 => 0.3.0-alpha.1.
BUG=
R=paulberry@google.com

Review-Url: https://codereview.chromium.org/2857273002 .
2017-05-03 18:06:50 -07:00
Devon Carew 99d21dd9d0 Prepare package:analyzer 0.30.0.
BUG=
R=kevmoo@google.com

Review-Url: https://codereview.chromium.org/2862713002 .
2017-05-03 14:34:55 -07:00
Paul Berry 3dbe0099a2 Prepare to publish analyzer, front_end, and kernel.
Due to the tight coupling between analyzer and front_end, they need to
be published atomically.  The last published version of kernel is old
enough that it needs to be published too.

I've bumped the versions to the following, and changed the
dependencies so that this set of versions is mutually compatible:

- analyzer: 0.30.0-alpha.3
- front_end: 0.1.0-alpha.2
- kernel: 0.2.0

(Note that kernel's version didn't need bumping since the most
recently published version of it is 0.1.0)

R=asgerf@google.com

Review-Url: https://codereview.chromium.org/2828273003 .
2017-04-21 01:35:35 -07:00
Brian Wilkerson 653f9defb1 Prepare to publish another alpha
R=scheglov@google.com

Review-Url: https://codereview.chromium.org/2834493003 .
2017-04-19 13:01:40 -07:00
Brian Wilkerson 5227e74dfd Update the pubspec to capture new dependencies
R=jakemac@google.com

Review-Url: https://codereview.chromium.org/2778473002 .
2017-03-24 09:43:06 -07:00
Paul Berry 556e072ba5 Fix analyzer pubspec after 685045d619.
Commit 685045d619 added files to
analyzer that directly import from package:kernel, so package:kernel
is now a dependency.

R=scheglov@google.com

Review-Url: https://codereview.chromium.org/2757763003 .
2017-03-17 13:47:14 -07:00
pq bcfa7e9ad2 analyzer and front_end alphas.
BUG=
R=brianwilkerson@google.com, paulberry@google.com

Review-Url: https://codereview.chromium.org/2661373002 .
2017-01-31 14:00:16 -08:00
Paul Berry b3237d0ad8 Remove analyzer workaround for #27447.
This issue was fixed in the SDK sufficiently long ago that it doesn't
seem necessary to keep the workaround in analyzer.

R=scheglov@google.com

Review-Url: https://codereview.chromium.org/2662033002 .
2017-01-30 13:04:26 -08:00
Kevin Moore c1a0b12159 use latest pkg/isolate
R=brianwilkerson@google.com

Review-Url: https://codereview.chromium.org/2662723002 .
2017-01-28 13:53:17 -08:00
Michael R Fairhurst 73725edbb1 Add missing cli_util pub dependency to analyzer (#28033) 2016-12-13 15:50:27 +01:00
Paul Berry 0cf5215560 Update analyzer pubspec to reflect dependency on collection.
The dependency was added in 27a3275495.
Note that analyzer previously had a transitive dependency on
collection.

R=scheglov@google.com

Review URL: https://codereview.chromium.org/2536373004 .
2016-11-30 09:24:02 -08:00
Paul Berry 0c3fade7f7 Fix front_end version number in preparation for publishing.
Analyzer needs to depend on a published version of front_end in order to
pass buildbot tests (it may be an alpha version).  This CL sets the
version to "0.1.0-alpha.0" (I will publish this version once the CL
lands).  Note that the previous version of front_end was "0.1.0", so we
appear to be moving the version backwards.  This is ok because version
"0.1.0" was never published.

Note that during this transitional period where code is being moved from
analyzer to front_end, we have circular imports between analyzer and
front_end, so from now until the transitional period ends, we will need
to publish front_end whenever we publish analyzer.

Update copyright notices in front_end package

R=brianwilkerson@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org/2485993003 .
2016-11-08 14:28:40 -08:00
Paul Berry 0a1fb8d248 Move scanner into pkg/front_end/lib/src/scanner.
Several support classes also had to move to front_end along with the
scanner.  Some of these support classes arguably don't belong to the
scanner itself, since they have other uses (e.g. SyntacticEntity,
ErrorCode, ErrorSeverity, ErrorType, and StringUtilities).  They will
be reorganized into a more appropriate location in future CLs, at the
time that they become needed by other components of the front end.

In order to avoid dragging in a lot of dependencies, the following
changes were made:

1. Scanner no longer reports errors through Source and
AnalysisErrorListener objects passed to the constructor.  Instead, it
provides an abstract reportError() method which clients may override
to perform error reporting in any way they wish.  Analyzer contains an
override of Scanner that mimics the old behavior in order to maintain
compatibility.

2. Static members of ErrorCode (`values` and `byUniqueName`) have been
moved to top level, and remain in analyzer.  To maintain
compatibility, these static members remain in ErrorCode (as deprecated
members that simply wrap the implementations in analyzer).  This means
we have a reverse dependency (front_end depends on analyzer), but this
dependency will go away as soon as we publish the next breaking change
release of analyzer.

R=brianwilkerson@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org/2486873003 .
2016-11-08 13:47:17 -08:00
Brian Wilkerson 36d89f0c38 Prepare to publish
R=keertip@google.com

Review URL: https://codereview.chromium.org/2438653004 .
2016-10-20 14:31:08 -07:00
Konstantin Shcheglov 175dad4f15 Switch 'analyzer' to 'package:test' and test_reflective_loader ^0.1.0.
R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org/2391423003 .
2016-10-06 08:46:35 -07:00
Konstantin Shcheglov 3e5c77702f Publish analyzer 0.29.0
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2400443002 .
2016-10-05 12:20:00 -07:00
Brian Wilkerson dd9f017a21 Bump the version number in preparation for publishing
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2367833002 .
2016-09-23 08:16:48 -07:00
Konstantin Shcheglov 663a3e810c Reapply abc5051854: Remove 'Element.docRange'.
I also marked the corresponding information in summaries as @deprecated
and made a small tweak to the generator so that it knows that the ids
of deprecated fields are still used.

R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org/2330813002 .
2016-09-11 09:41:53 -07:00
Konstantin Shcheglov cc6beaf56d Pull in test_reflective_loader 0.0.4 and switch analyzer to it.
There are following changes:

1. DEPS to pull in test_reflective_loader 0.0.4
2. Rename runReflectiveTests() to defineReflectiveTests().
3. Remove analyzer's pkg/analyzer/test/reflective_tests.dart
4. Replace reflective_tests.dart imports with package:test_reflective_loader/test_reflective_loader.dart imports.
5. Sort/format and organize imports in the files with imports changes.
6. Fix for a couple of bugs in analysis_server exposed by the new loader.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2298913003 .
2016-08-31 13:46:39 -07:00
pq 39c828f4a9 Analyzer 0.28.2-alpha.0.
* Corresponds with the analyzer/server in the `1.20.0-dev.1.0 ` SDK.

BUG=
R=brianwilkerson@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org/2297963002 .
2016-08-30 17:20:12 -07:00
pq b7f0ce083b Revert "Remove 'Element.docRange'."
This reverts commit abc5051854.

Background: required to keep `analyzer` version-compatible with `test`.

BUG=
R=brianwilkerson@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org/2293143003 .
2016-08-30 13:10:15 -07:00
Konstantin Shcheglov abc5051854 Remove 'Element.docRange'.
I also marked the corresponding information in summaries as @deprecated
and made a small tweak to the generator so that it knows that the ids
of deprecated fields are still used.

R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org/2270903002 .
2016-08-24 09:40:23 -07:00
pq 85551ad19f Publish stable 0.28.0.
Publish stable analyzer.

R=scheglov@google.com

Review URL: https://codereview.chromium.org/2263403002 .
2016-08-22 13:14:23 -07:00
Konstantin Shcheglov a03af42f79 Publish analyzer 0.28.0-alpha.2 with PubSummaryManager fixes.
R=brianwilkerson@google.com, pquitslund@google.com
BUG=

Review URL: https://codereview.chromium.org/2257053004 .
2016-08-18 13:39:20 -07:00
Konstantin Shcheglov 5bfd6e6dbb Add PubSummaryManager.computeUnlinkedForFolder() for Flutter.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2254893003 .
2016-08-17 14:31:50 -07:00
Brian Wilkerson 8c29675179 Increment version prior to publishing
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2249163003 .
2016-08-16 11:02:08 -07:00
Konstantin Shcheglov 4cda900e9b Publish new analyzer version for new DartSdk.getLinkedBundle() method.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2242663003 .
2016-08-12 15:03:41 -07:00
Brian Wilkerson 261ef2bd1f Bump the version prior to publishing
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2235353002 .
2016-08-11 11:17:36 -07:00