scheglov@google.com
e2a3d42150
A tentative step into converting analyzer tests into reflective.
...
We don't generate / translate tests anymore, so managing dartSuite()
manually is quite labor-consuming.
R=brianwilkerson@google.com , paulberry@google.com
BUG=
Review URL: https://codereview.chromium.org//636903003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40964 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-07 17:27:41 +00:00
brianwilkerson@google.com
0a439dfc90
Add support for cross-session storage
...
R=paulberry@google.com
Review URL: https://codereview.chromium.org//632353002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40962 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-07 16:58:18 +00:00
scheglov@google.com
9b0697baac
More string literals getters.
...
To use in the inline local refactoring.
1. We can unwrap a literal only if its `isSingleQuoted` is the same as of the target literal.
2. We can unwrap a single-line literal into a multi-line one, but not vice versa.
R=brianwilkerson@google.com , paulberry@google.com
BUG=
Review URL: https://codereview.chromium.org//632203002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40957 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-07 15:51:02 +00:00
scheglov@google.com
6d0260be31
Add SingleStringLiteral with accessors.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//630163004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40949 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-07 00:51:12 +00:00
brianwilkerson@google.com
9f194c3548
Unify Entry and EntryImpl classes
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org//630763004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40944 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-06 19:43:38 +00:00
danrubel@google.com
3f93d59db9
remove instrumentated task cycle detection
...
BUG=
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org//624313002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40941 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-06 18:08:50 +00:00
paulberry@google.com
dc431d1622
Create a NullErrorReporter to use when errors don't need to be recorded.
...
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org//628053002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40940 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-06 16:57:11 +00:00
brianwilkerson@google.com
d23930956a
Remove cache entry copying. This also removes the extractContext/mergeContext methods, but I don't believe that anyone is depending on them.
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org//630743002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40936 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-06 16:06:03 +00:00
brianwilkerson@google.com
9c1093ffb0
Make it easier to run engine tests
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org//632553002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40915 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-05 22:22:41 +00:00
scheglov@google.com
3fab2628f4
Uncomment and clean up engine_test.dart
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//627133002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40913 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-05 19:55:07 +00:00
scheglov@google.com
d682c178b4
Write end-of-block comments.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//624403002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40912 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-05 17:53:52 +00:00
scheglov@google.com
8debcea519
Uncomment and clean up all_the_rest.dart tests.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//630513002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40906 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-03 22:09:29 +00:00
scheglov@google.com
bc287b5a3e
New analyzer snapshot.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//622743002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40867 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-02 04:13:16 +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
scheglov@google.com
778536d97c
Issue 19682. New analyzer snapshot that fixes an inline refactoring problem.
...
R=brianwilkerson@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=19682
Review URL: https://codereview.chromium.org//561373002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40193 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-11 22:47:29 +00:00
jwren@google.com
8d18c3720c
Bug fix in analyzer command line to work with pub list
...
R=paulberry@google.com
Review URL: https://codereview.chromium.org//557333005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40110 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-10 20:01:10 +00:00
jwren@google.com
83de5a8f7b
New dev version of analyzer package
...
R=paulberry@google.com , scheglov@google.com
Review URL: https://codereview.chromium.org//557043003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40056 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-09 21:13:10 +00:00
jwren@google.com
944174f36a
Move package_map_provider.dart from the server to the analyzer package to be used by the command line analyzer.
...
R=brianwilkerson@google.com , paulberry@google.com
Review URL: https://codereview.chromium.org//560553002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40051 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-09 20:36:35 +00:00
paulberry@google.com
a99a140173
Change analyzer package to a "-dev" version.
...
This will enable the analysis server to depend on the latest and
greatest analyzer without forcing that version on other analyzer
clients.
R=scheglov@google.com
Review URL: https://codereview.chromium.org//545373002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39935 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-05 21:34:53 +00:00
scheglov@google.com
b7189ea678
New analyzer snapshot.
...
We compute the parameter element for 'object.field = 42' now, so:
1. We can stop doing it in InlineMethodRefactoring.
2. We need to update the corresponding hover integration test.
R=brianwilkerson@google.com , paulberry@google.com
BUG=
Review URL: https://codereview.chromium.org//535543003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39772 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-02 20:10:47 +00:00
scheglov@google.com
a2cc52070c
New analyzer snapshot.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//509073008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39654 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-28 14:54:20 +00:00
scheglov@google.com
8647752153
New analyzer snapshot.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//515543002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39599 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-27 15:51:56 +00:00
scheglov@google.com
711827d462
New analyzer snapshot.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//492463004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39500 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-22 17:28:29 +00:00
scheglov@google.com
c74b350b50
New analyzer snapshot.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//489173002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39416 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-20 18:18:43 +00:00
brianwilkerson@google.com
90a5272601
Add flags for proposed features
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org//481273003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39372 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-19 16:02:46 +00:00
scheglov@google.com
decee0f35a
Remove check for relative pathin java_io_test.
...
Hopefully this will fix one of the pub bot failures.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//485773002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39341 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-18 18:10:06 +00:00
scheglov@google.com
a12312f39f
Improve formatting of variable declarations/assignments.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//477373002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39320 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-17 20:24:07 +00:00
scheglov@google.com
c8e533be3a
Tweak for formatting constructor initializers.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//474363002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39313 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-15 21:12:36 +00:00
scheglov@google.com
f127b725e9
Test for JavaFile.toURI().
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//479593002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39300 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-15 16:28:03 +00:00
scheglov@google.com
7af986dcd1
Issue 20520. JavaFile.toURI() should use absolute path.
...
R=brianwilkerson@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=20520
Review URL: https://codereview.chromium.org//471053002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39260 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-14 18:22:28 +00:00
ricow@google.com
d4fe37b1ab
Get the version file from the correct location compated to the snapshot we generate for the analyzer
...
R=kustermann@google.com
Review URL: https://codereview.chromium.org//469673005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39248 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-14 14:54:27 +00:00
scheglov@google.com
de7d21f38c
New analyzer snapshot, add format/formatList.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//475543002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39222 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-13 21:51:47 +00:00
paulberry@google.com
1fec496110
Use _provider.pathContext to convert URIs to files.
...
This should prevent unit tests from failing on Windows, since unit
tests use a Posix style path context.
TBR=scheglov@google.com
Review URL: https://codereview.chromium.org//461763002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39111 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-11 22:21:13 +00:00
paulberry@google.com
845775b081
Properly translate file: URIs to paths on Windows.
...
Uri.path returns the path component of the URI in raw form. This
works on MacOS and Linux, but on Windows we need for drive letters to
be handled and for '/' to be converted to '\'. To do this, we have to
use Uri.toFilePath(windows: ...).
This was preventing the index from being able to find source files,
which in turn prevented search.getTypeHierarchy from traversing
subclasses (since it finds subclasses using the index).
BUG=dartbug.com/20436
R=scheglov@google.com
Review URL: https://codereview.chromium.org//464583002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39105 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-11 21:02:05 +00:00
scheglov@google.com
9e3aa826dc
New analyzer snapshot.
...
Basically it includes all the code that was not translated before.
Includes new library: element_handle, but it should not be used because of WeakReference absence in Dart.
Includes new test: engine_test, but it has too much code requirering manual tweaks, after we will stop translating.
All other tests are in all_the_rest.dart, again to be moved into corresponding libraries and cleaned up later.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//459703002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39091 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-11 15:41:37 +00:00
danrubel@google.com
fdb72e2bff
restore missing import
...
BUG=
R=brianwilkerson@google.com , scheglov@google.com
Review URL: https://codereview.chromium.org//457043004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39068 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-10 20:53:44 +00:00
scheglov@google.com
4392cc42a0
Support for excluded files/folders.
...
R=brianwilkerson@google.com , paulberry@google.com
BUG=
Review URL: https://codereview.chromium.org//456893002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39046 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-08 19:42:07 +00:00
brianwilkerson@google.com
a60bcecf8b
Analyzer: analyze plural files; remove unused async parameter
...
BUG= https://code.google.com/p/dart/issues/detail?id=20268
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org//448913002
Patch from Samuel Rawlins <srawlins@google.com >.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39002 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 18:34:08 +00:00
scheglov@google.com
c7d37a71cb
Fix another Windows/Posix mismatch in server.
...
TBR
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//448853003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38964 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 02:53:07 +00:00
scheglov@google.com
63b0d11e1b
Fixes for the 'pub' bot and 'analysis_server' on Windows.
...
TBR
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//444293002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38962 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 02:01:58 +00:00
scheglov@google.com
8b247578f1
Add Folder.contains(path) and use it in ContextDirectoryManager.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//444193002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38958 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-06 22:25:04 +00:00
scheglov@google.com
0f041852a6
Fix for opening SDK sources.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//449583003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38955 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-06 22:13:28 +00:00
scheglov@google.com
c5263aae9f
Breaking changes in 'analyzer' package.
...
1. Source.uri added.
2. DartSdk.fromEncoding() replaced with fromFileUri().
This CL cannot be committed as is until pkg/code_transformers is fixed.
R=brianwilkerson@google.com , sigmund@google.com
BUG=
Review URL: https://codereview.chromium.org//428303004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38949 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-06 20:41:42 +00:00
scheglov@google.com
57f076f17f
New analyzer snapshot.
...
Not to be published.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//435483002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38764 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-31 00:40:17 +00:00
scheglov@google.com
57b5c62818
Test for the 'importing a package library' fix.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//426793002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38653 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-28 22:18:14 +00:00
scheglov@google.com
4a47ef63f5
Move PackageMapUriResolver into analyzer.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//422973002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38650 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-28 21:09:58 +00:00
scheglov@google.com
9be22e5ac4
Uncomment and test fixes for importing libraries.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//427473003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38637 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-28 18:28:00 +00:00