Commit Graph

4090 Commits

Author SHA1 Message Date
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
danrubel@google.com 1330c1f1ee provide importUri for packages and include those suggestions
BUG=dartbug.com/23175
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45377 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-23 16:24:57 +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
pquitslund@google.com 434ba369f9 Driver fix to decouple from analyzer front-end deps.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45361 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-22 20:31:52 +00:00
danrubel@google.com 8f7079de3d fix NSM in suggestions with importUri
BUG=dartbug.com/23302
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45359 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-22 20:15:16 +00:00
brianwilkerson@google.com b63a2e1d78 Add API for contributing to the index
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45358 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-22 20:11:20 +00:00
brianwilkerson@google.com 8e6ccb391a Rename IndexStore to avoid confusion with the new public API
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45356 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-22 19:40:45 +00:00
brianwilkerson@google.com cb7e001db8 Add file missed in previous CL and comment clean-up
R=danrubel@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45355 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-22 19:23:07 +00:00
danrubel@google.com b0886e8c98 include importUri in out of scope suggestions
BUG=dartbug.com/23175
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45349 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-22 14:31:46 +00:00
brianwilkerson@google.com 4e0bb57118 Update specification version number
R=jwren@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45297 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-20 21:07:29 +00:00
brianwilkerson@google.com 4422b7c01e Fix error handling for formatting and update the spec
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45296 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-20 20:57:33 +00:00
brianwilkerson@google.com 1fa696f64d Initial version of completion plugin API
R=danrubel@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45293 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-20 17:44:41 +00:00
danrubel@google.com f117f67660 add optional importUri to completion suggestion
BUG=dartbug.com/23175
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45288 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-20 15:32:54 +00:00
danrubel@google.com 25c6bbaa14 suggest types in var declaration when partial type name supplied
BUG=dartbug.com/23225
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45287 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-20 15:29:28 +00:00
danrubel@google.com 58dd0377b3 fix NSM when computing field formal parameter in non-constructor arg list
BUG=dartbug.com/23268
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45286 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-20 15:15:01 +00:00
danrubel@google.com 1a605b53d5 suggest this keyword in constructor param list
BUG=dartbug.com/22685
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45285 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-20 15:13:40 +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
scheglov@google.com ec67f0c0c5 Issue 23184. Fix for exception when 'async' is used outside of a function body.
R=brianwilkerson@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=23184

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45219 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-16 19:39:39 +00:00
brianwilkerson@google.com e57ae7de7b Rename method for consistency
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45214 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-16 16:22:13 +00:00
danrubel@google.com 118f05d804 suggest "this." local fields in constructor param
BUG=dartbug.com/22685
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45213 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-16 16:06:26 +00:00
paulberry@google.com cd1dd1864b Fix additional cases where analysis server might send null, violating protocol.
In addition, modify the code generation so that these protocol
violations will be caught by assertions during unit tests.
Previously, they would only be caught at runtime by client code.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45211 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-16 15:41:39 +00:00
paulberry@google.com cb319b21cd Fix "edit.format" to follow protocol when there is no selection.
BUG=dartbug.com/23230
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45210 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-16 14:44:55 +00:00
paulberry@google.com bb10493211 Use mock ProcessResult in optimizing_pub_package_map_provider_test.
This will make it feasible to cherry-pick this test into older
versions of Dart in which the ProcessResult constructor is private.

Also, fix some "unused variable" hints.

R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45183 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-15 20:55:18 +00:00
paulberry@google.com 7e53bd2b1f Avoid redundant calls to "pub list" when multiple dependencies change.
BUG=dartbug.com/22574
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45170 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-15 16:02:18 +00:00
paulberry@google.com 5b1c199b22 Prevent analysis exceptions from crashing the completion engine.
Prevent CompletionDomainHandler.priorityChanged() from crashing if the
future returned by DartCompletionManager.computeCache() completes with
an error (which can happen in the event that an exception occurred
while analyzing the file in question).

BUG=dartbug.com/23176
R=danrubel@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45142 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-14 16:30:23 +00:00
danrubel@google.com 29d83d3cb5 improve keyword suggestions
BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45113 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-13 17:44:19 +00:00
scheglov@google.com 9448ea0f06 Use working cache size when request resolved units in requests.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45111 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-13 16:35:16 +00:00
brianwilkerson@google.com dbfb8bf97d Create a public API for contributing assists and make assists pluggable
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45109 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-13 16:03:50 +00:00
brianwilkerson@google.com 46064e8f2f Create a public API for contributing fixes and make fixes pluggable
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45079 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-10 21:01:10 +00:00
scheglov@google.com 2e2bb91f26 Move getElementAt() to CompilationUnitElement.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45072 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-10 16:57:51 +00:00
danrubel@google.com 9efad0a88f add suggestions for named param
BUG=dartbug.com/22403
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45047 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-10 01:23:23 +00:00
scheglov@google.com 3acb224c1d Add await/async when a method with 'await' in its body is extracted.
R=brianwilkerson@google.com, paulberry@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45036 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 21:16:17 +00:00
scheglov@google.com ed26cdbf05 Remove old debug output.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45025 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 18:40:00 +00:00
scheglov@google.com 28c4a74388 Tweaks for Element encoding and decoding.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45016 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 16:09:07 +00:00
danrubel@google.com a22a7c47ff do not suggest local functions
BUG=dartbug.com/23131
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45014 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 15:58:59 +00:00
scheglov@google.com 976eeb8df4 Use file/offset/kind triplet as elements id.
It saves about 20 MB for each ToDo MVC sample.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45011 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 15:21:12 +00:00
danrubel@google.com 0a1f0d3fc9 refactor optype to better filter invocation/prefixed suggestions
BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45001 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 12:16:28 +00:00
danrubel@google.com de06a0607e fix NSMError in completion
BUG=dartbug.com/23114
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44979 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-08 18:42:25 +00:00
danrubel@google.com a34401414c improve parser recovery for import statements
BUG=dartbug.com/23108
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44978 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-08 18:26:00 +00:00
danrubel@google.com faf29a0686 improve parser recovery for import directives
BUG=dartbug.com/23108
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44968 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-08 13:37:50 +00:00
danrubel@google.com 509dd4988a suggest loadLibrary is import is deferred
BUG=dartbug.com/23108
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44953 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-07 22:20:04 +00:00
danrubel@google.com 2a7093fa25 suggest deferred/as keywords
BUG=dartbug.com/23108
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44952 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-07 22:17:20 +00:00
danrubel@google.com ec456501b5 do not suggest elements from internal sdk libs
BUG=dartbug.com/23104
R=paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44939 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-07 16:52:43 +00:00
scheglov@google.com 4d9b8090a0 Tweaks for 'Encapsulate Field' assist.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44936 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-07 15:33:53 +00:00
danrubel@google.com 1e83a73221 rename completion source files to match content
BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44921 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-06 17:46:39 +00:00
danrubel@google.com 259dac94cc rename completion computer to contributor
* this will be followed by a separate CL that renames related files

BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44918 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-06 17:25:09 +00:00
scheglov@google.com a9bbd436f5 Issue 13239. Add the 'Encapsulate Field' refactoring.
R=brianwilkerson@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=13239

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44912 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-06 15:44:33 +00:00
paulberry@google.com 4af80fc1e7 Add an analysis server option to enable null-aware-operator support.
The option may be enabled in editor by setting the tracing option
"experimental/nullAwareOperators" (in com.google.dart.tools.core) to
true.

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44909 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-06 14:53:00 +00:00
danrubel@google.com 9eede4128e suggest dynamic and void when defining new compilation unit members
BUG=dartbug.com/23063
R=paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44895 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-03 22:18:39 +00:00