Commit Graph

143 Commits

Author SHA1 Message Date
Paul Berry ac5578d03d Refactor analysis server code generation to re-use logic from analyzer.
The code generation infrastructure logic is now shared.

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/1431683002 .
2015-11-02 16:18:03 -08:00
pq af7017e585 Option support for enableSuperMixins (and more).
* Adds language configuration support to `.analysis_options`:

  analyzer:
    language:
      enableSuperMixins: true

  (with validation).

* Extracts context configuration out of `server` context_manager and into `analyzer` where it can be re-used by `analyzer_cli`.
* Some general cleanup of option validation (with more to come!)

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/1423333002 .
2015-10-29 14:11:26 -07:00
pq b32e2ce0db Analyzer dep bump.
BUG=
R=scheglov@google.com

Review URL: https://codereview.chromium.org/1415693004 .
2015-10-26 10:02:57 -07:00
pq bb431bbec4 Publish optionValidator extentsion API.
R=scheglov@google.com

Review URL: https://codereview.chromium.org/1420903003 .
2015-10-25 20:49:49 -07:00
Konstantin Shcheglov d5830fb6a3 Publish analyzer and use it to fix completion in 'for (Type item in^)'.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/1417613002 .
2015-10-19 12:36:16 -07:00
Konstantin Shcheglov 381d3ac549 Require SDK >= 1.12 to start using '?.' syntax.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/1412773002 .
2015-10-16 12:45:03 -07:00
pq 6bce9b2373 One extension manager (to bind them all).
TL;DR Moves all plugin registration to AE's extension manager.

The rub is that plugin registration wasn't happening right which cropped up in integration testing.  Included is a test that verifies that options are getting properly threaded through to the linter.  (This test failed when we had two Extension Managers.)

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

Review URL: https://codereview.chromium.org/1398033004 .
2015-10-13 16:37:42 -07:00
pq 695256d586 Linter hookup into AS.
Note the TODO to fix the extension manager interaction hijinx.  Really we should ensure that we are only using the one in engine.  At the moment, it's easy to get this wrong (as the initialization heroics herein testify).

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/1392683003 .
2015-10-09 13:40:07 -07:00
Konstantin Shcheglov 6ae14b5774 Update required 'analyzer' version.
The library 'dart:profile' was removed.
Without this new version I cannot start DAS from sources in IDEA.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/1403493003 .
2015-10-09 08:25:31 -07:00
Konstantin Shcheglov 184fe4ae58 Publish new version of analyzer and use it in AS.
R=pquitslund@google.com
BUG=

Review URL: https://codereview.chromium.org//1377233002 .
2015-09-30 11:15:23 -07:00
danrubel 773c3cf9d1 improve import uri completions - fixes #24000
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1325583002 .
2015-08-31 15:21:34 -04:00
danrubel 65652fd5af (TBR) update analyzer version - related to #23947 (part 2)
Review URL: https://codereview.chromium.org//1288653003 .
2015-08-15 14:57:09 -04:00
Paul Berry e21c112313 Upgrade analysis_server's dependency on analyzer to 0.26.1-alpha.0.
This is necessary in order to take advantage of the new signature for
the PathFilter constructor introduced in
d977370e3f.

Also the dependency on dart_style had to be widened since older
versions of dart_style force analyzer version <0.26.0.

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1278853002 .
2015-08-06 11:33:13 -07:00
pq f013d3868c Actual URI support for package URI resolution.
R=brianwilkerson@google.com, paulberry@google.com

Review URL: https://codereview.chromium.org//1245263002 .
2015-07-21 15:53:56 -07:00
John McCutchan cb5335dc4a Add a PathFilter to each context in analysis_server
BUG=
R=brianwilkerson@google.com, pquitslund@google.com

Review URL: https://codereview.chromium.org//1238173003 .
2015-07-17 12:42:57 -07:00
Paul Berry 921a5229fa Make use of test_flushAstStructures in analysis server.
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1203783004.
2015-06-24 14:04:26 -07:00
Dan Rubel 61460a0a10 pull in new watcher package
BUG=
R=paulberry@google.com

Review URL: https://codereview.chromium.org//1194653002.
2015-06-20 14:12:12 -04:00
Konstantin Shcheglov f1d4ef9164 Issue 23409. Don't set 'propagatedType' in (vs. after) 'name is Type'.
This fixes the corresponding 'Extract Method' issue.

R=brianwilkerson@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=23409

Review URL: https://codereview.chromium.org//1161343002
2015-06-01 12:40:30 -07:00
Paul Berry 2362001bdb Bump analysis server's reference to analyzer to 0.25.1-alpha.0.
This should fix errors being experienced by DartPad.

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

Review URL: https://codereview.chromium.org//1149203004
2015-05-27 06:37:50 -07:00
nweiz@google.com 70a846ad6c Update pubspecs and dependencies to get pkgbuild tests working.
This also removes the vendored copy of Angular, which was an outdated version of
an unstaffed branch.

R=pquitslund@google.com

Review URL: https://codereview.chromium.org//1058283006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45410 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-24 20:08:53 +00:00
brianwilkerson@google.com ac3613e2bb Re-apply change to move to plugin package
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1094083003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45408 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-24 18:54:24 +00:00
pquitslund@google.com a565470b1f Bump analysis_server dep on args to >=0.13.0.
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1108553004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45402 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-24 17:09:07 +00:00
nweiz@google.com 127f7e2a0b Update args to 0.13.0.
See also https://codereview.chromium.org/1094793005.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//1103803002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45389 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-23 23:42:54 +00:00
brianwilkerson@google.com 3d536efcfe Revert breaking change
Review URL: https://codereview.chromium.org//1101213002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45384 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-23 22:12:20 +00:00
brianwilkerson@google.com 24c853446a Convert analyzer and analysis_server to use the plugin package
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1063153004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45382 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-23 20:32:35 +00:00
scheglov@google.com 9efb25fa50 Use package:test_reflective_loader instead of reflective_tests.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//1101003002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45365 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-22 20:54:29 +00:00
lukechurch@google.com 27ab530d1d Update analysis_server SDK requirements
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1068693004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45269 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-19 18:16:06 +00:00
paulberry@google.com f9b2f665df Fix analysis_server pubspec to point to analyzer 0.24.1-alpha.0 and dart_style.
Bleeding edge version analysis server now works with the packages
listed in its pubspec again.

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1051383002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44870 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-02 20:18:13 +00:00
paulberry@google.com 3f96c05547 Clean up analyzer hints.
R=danrubel@google.com

Review URL: https://codereview.chromium.org//1042913002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44781 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-30 16:54:02 +00:00
pquitslund@google.com a7a0e4514e Reverting analyzer args deps update pending new args in third_party (dartbug.com/22902).
R=keertip@google.com

Review URL: https://codereview.chromium.org//1017343002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44568 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-18 23:01:39 +00:00
pquitslund@google.com 8eeb131f62 Args dep update (dartbug.com/22902).
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1019143002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44567 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-18 22:25:14 +00:00
scheglov@google.com a28e99b719 Issue 22757. Create pubspec.yaml file change on project rename.
R=brianwilkerson@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=22757

Review URL: https://codereview.chromium.org//1015513003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44515 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-16 18:59:16 +00:00
scheglov@google.com 75c26fe8e9 New analyzer version before push.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//893223002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43412 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-03 17:39:27 +00:00
pquitslund@google.com 46e5078360 Bump analyzer rev pre pub publish.
Addresses bug in setting linter options.

R=danrubel@google.com, paulberry@google.com

Review URL: https://codereview.chromium.org//873883005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43341 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-30 17:46:37 +00:00
pquitslund@google.com 952c2c260f Bump server analyzer dep to point to latest dev build.
R=brianwilkerson@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org//880103002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43316 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-29 21:56:55 +00:00
pquitslund@google.com e8d04b5d1e Remove dart_style pub dep in quest for build greenness [TBR].
Review URL: https://codereview.chromium.org//848003007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42843 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-13 21:49:25 +00:00
pquitslund@google.com e034c062cf Server dart_style package version dep fix.
R=scheglov@google.com

Review URL: https://codereview.chromium.org//806133004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42840 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-13 21:05:47 +00:00
pquitslund@google.com 8e91d1abec Fix server pubspec.
R=jwren@google.com

Review URL: https://codereview.chromium.org//849943002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42839 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-13 20:57:51 +00:00
pquitslund@google.com 6fb12789e7 Analysis server format service wiring (and protocol doc update).
R=brianwilkerson@google.com, danrubel@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org//833903005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42835 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-13 20:34:10 +00:00
scheglov@google.com 8affb6c015 Upgrade unittest to be able to use isNotEmpty.
R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org//790363006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42380 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-16 04:07:37 +00:00
paulberry@google.com 9b35b056a7 Fix deprecation warnings in analyzer and analysis server.
R=brianwilkerson@google.com, danrubel@google.com

Review URL: https://codereview.chromium.org//685133003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41461 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-03 17:10:08 +00:00
scheglov@google.com 227c5524d8 Issue 21375. Fix for FunctionTypeAliasElement-based FunctionType source.
R=brianwilkerson@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=21375

Review URL: https://codereview.chromium.org//672013002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41254 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-23 04:24:59 +00:00
scheglov@google.com 8f337c37d1 Issue 21373. Fix for removing line info in case of exception (causes NPE in outline computer).
I will update analysis_server/pubspec.yaml before commit.

R=brianwilkerson@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=21373

Review URL: https://codereview.chromium.org//652903006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41235 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-21 20:34:31 +00:00
scheglov@google.com 11f7d4027e Fix for missing LineInfo to SDK entries.
I will update analyzer reference in pubspec before commit.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//647553006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41064 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-12 21:27:08 +00:00
paulberry@google.com 71552797de Update analyzer version to 0.23.0-dev.10
TBR=scheglov@google.com

Review URL: https://codereview.chromium.org//645793003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41044 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-10 16:13:40 +00:00
scheglov@google.com 53fe3d983f Issue 21233. Improve inlining strings into string interpolations.
R=brianwilkerson@google.com, paulberry@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=21233

Review URL: https://codereview.chromium.org//633823002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40963 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-07 17:21:40 +00:00
paulberry@google.com 5b45f8e762 Move PubPackageMapProvider to its own file.
This will allow clients of the AnalysisServer package to provide their
own PackageMapProvider without bringing in a dependency on dart:io.

R=brianwilkerson@google.com, rpaquay@chromium.org

Review URL: https://codereview.chromium.org//599133002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40638 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-24 18:09:08 +00:00
scheglov@google.com bbbcddfac6 New analyzer snaphot.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//581733002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40394 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-17 20:07:57 +00:00
scheglov@google.com 8ed8098a48 Issue 17389. Analyzer snapshot and server tweaks to use new ParameterElement.defaultValueCode.
This also makes Analysis Server to return hovers with parameter default values.

R=brianwilkerson@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=17389

Review URL: https://codereview.chromium.org//564413005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40298 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-16 01:46:27 +00:00
scheglov@google.com d2d8fb708e Issue 20894. Rename 'Class' when rename refactoring is activated on 'Class' in 'new Class.name()'.
To do this we need to tweak the Java version of ElementLocator and regenarate the Dart version.

R=brianwilkerson@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=20894

Review URL: https://codereview.chromium.org//571523002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40208 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-12 17:16:15 +00:00