Commit Graph

397 Commits

Author SHA1 Message Date
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
Brian Wilkerson 17f917b342 Bump the version prior to publishing
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2218693003 .
2016-08-05 09:25:33 -07:00
Brian Wilkerson 4dcb9b6196 Initial implementation for lazy compound assignment operators
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2199323002 .
2016-08-02 09:16:17 -07:00
Brian Wilkerson 394e27406c Prepare to publish analyzer
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2204513002 .
2016-08-01 13:01:56 -07:00
Brian Wilkerson c3f16c4250 Update version constraints for the html package (issue 26711)
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2202573002 .
2016-08-01 08:37:45 -07:00
Kevin Moore 17a2ddfd42 Update dependency on pkg/package_compiler
For analysis_server, analyzer, analyzer_cli, compiler packages

Progress on https://github.com/dart-lang/sdk/issues/26711

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2172683002 .
2016-07-27 08:42:05 -07:00
Priscilla Lee 9fa7b5effe Removed io dependencies in analyzer to allow compiler to run in the browser
BUG=
R=paulberry@google.com

Review URL: https://codereview.chromium.org/2176363002 .
2016-07-26 16:43:34 -07:00
pq 2913dd0e19 Analyzer 0.27.4-alpha.18.
* Support for references to operators in doc comments (#26929).

BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2170013002 .
2016-07-21 12:45:18 -07:00
pq 2a2424a314 Bump analyzer to 0.27.4-alpha.17.
* Support for trailing commas in parameter and argument lists (#26647).
* Strong mode breaking change: can now infer generic type arguments from the constructor invocation arguments (#25220).

BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2163503002 .
2016-07-18 16:28:39 -07:00
Konstantin Shcheglov ed887c09d1 Validate cache consistency asynchronously. Compute modification times of physical files in a separate isolate.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2132073003 .
2016-07-08 15:01:05 -07:00
pq ae60d5be1b Bump analyzer to 0.27.4-alpha.16.
Corresponds with the analyzer/server in the `1.18.0-dev.4.0` SDK.

To be pulled into flutter tools.

BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2125193002 .
2016-07-06 14:28:42 -07:00
pq eeeed6fddd Bump analyzer to 0.27.4-alpha.15.
BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2111173002 .
2016-06-30 10:08:01 -07:00
pq 3aad6e49e0 Update analyzer to 0.27.4-alpha.14.
Should be functionally in-sync w/ the analyzer in the 1.18.0-dev.2.0 SDK.

R=scheglov@google.com

Review URL: https://codereview.chromium.org/2090143002 .
2016-06-22 12:53:44 -07:00
pq 2eef9f5e27 Bump analyzer to 0.27.4-alpha.13.
For the purposes of consumption by `flutter analyze`.

Roughly syncs with `1.18.0-dev.1`.

BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2073553002 .
2016-06-15 20:52:51 -07:00
Brian Wilkerson 050eef6084 Bump version prior to publishing
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2066993002 .
2016-06-14 13:54:13 -07:00
Konstantin Shcheglov 643e682b1e Prepare for publishing analyzer 0.27.4-alpha.11
I think the new trackCacheDependencies option might be interesting for
DDC to use.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2061463002 .
2016-06-10 13:32:18 -07:00
pq 253ef8c391 Update DEPS (and analyzer) to latest package_config.
Once incremental analysis caching is enabled this will win us a 30% boost in analyzer CLI throughput. :)

BUG=
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2048323003 .
2016-06-09 10:09:39 -07:00
Konstantin Shcheglov 0f061f1987 Don't prevent 'isCycleFree' updating for resynthesized constructors.
We update it in ConstantEvaluationEngine which in general case does
not know whether the constructor is resynthesized or not.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2047103002 .
2016-06-07 19:21:03 -07:00
Konstantin Shcheglov c2f3076450 Allow analyzer to be used with crypto 2.x.x
R=brianwilkerson@google.com, kevmoo@google.com
BUG=

Review URL: https://codereview.chromium.org/2047023002 .
2016-06-07 09:49:27 -07:00
Konstantin Shcheglov e6d2b37065 Start using crypto 1.1.1 and tweak MD5 computation.
R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org/2041963002 .
2016-06-06 11:37:08 -07:00
pq fba5cbc425 Analyzer 0.27.4-alpha.9 (API fixes) (#26562).
Restores `EmbedderUriResolver` API.

Addresses breakages in `dartdoc` and any other downstream dependencies.

See: https://github.com/dart-lang/sdk/issues/26562.

BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2021453003 .
2016-05-29 06:57:42 -07:00
pq 55a22cf2c3 Analyzer rev to 0.27.4-alpha.8.
Version bump for flutter analyze integration.

BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2016403004 .
2016-05-27 15:35:23 -07:00
Konstantin Shcheglov 840e173cc6 Publish analyzer 0.27.4-alpha.7
In case if DDC folks want to get the latest performance improments.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2001923002 .
2016-05-23 09:44:39 -07:00
Konstantin Shcheglov 4419e7f479 Pass the 'strongMode' flag into SdkSummaryResynthesizer.
The code for DDC:

DartUriResolver createSdkPathResolver(String sdkPath) {
  var sdk = new SummaryBasedDartSdk('/path/to/strong.sum', true);
  return new DartUriResolver(sdk);
}

R=paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org/1979183005 .
2016-05-16 13:33:43 -07:00