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
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
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
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
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
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
a4dee8bf4c
Resolve names in combinators for PropertyInducingElements instead of PropertyAccessorElements.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//384093002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38199 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-14 17:11:34 +00:00
scheglov@google.com
7a27ca20dd
New analyzer snapshot.
...
Also includes the tweak for property accessor identifiers.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//382953002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38129 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-10 20:33:33 +00:00
scheglov@google.com
0a09f96271
Improve wrapping during formatting.
...
It will wrap on spaces with the lowest priority first, and if required - on the next priority, etc.
R=brianwilkerson@google.com , pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//381663004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38109 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-09 22:26:30 +00:00
scheglov@google.com
0597e61ba3
Move index/search to services.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//375693002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38045 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-07 22:24:59 +00:00
scheglov@google.com
bf61f59c82
Extract testing utilities into a separate package.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//376693002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38039 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-07 20:50:59 +00:00
scheglov@google.com
9e33b85c31
Move file_system libraries into 'analyzer'.
...
I still end up including memory FS into 'analyzer' because tests for ResourceUriResolver use it.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//372763003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38034 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-07 18:57:42 +00:00
scheglov@google.com
1f45100688
Move Index and IndexStore implementations into Engine.
...
Also move most of the related tests.
LocalIndex test is commented out, because relies on the infrastucture existing only in Server - virtual file system, mocks.
We need to move it into Engine or extract into a separate package.
This CL also removes Dart implementation of BTree.
We now use a different approach to implementing the index.
Bots are red after the previous CL, I hope that this one will fix at least some redness.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//365193004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37993 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-03 21:30:25 +00:00
scheglov@google.com
4b5436f498
IndexStore, Index and SearchEngine APIs and partial implementatons.
...
IndexStore and Index implementations are not moved yet to engine package.
SearchEngine implementation is not cleaned up yet, there is only (commented) raw java2dart translation result.
Index contributions are present, but without tests yet.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//363373002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37991 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-03 19:06:33 +00:00
scheglov@google.com
b405df0d27
New analyzer snapshot.
...
Mostly to get GetContentTask.internalPerform() to catch all exceptions.
We throw non-Java exception from memory resource, so we cannot test not existing parts/libraries cases in server.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//360393003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37907 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-01 21:01:50 +00:00
paulberry@google.com
35461efcb8
Analyzer snapshot based on r37767.
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org//353083003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37788 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-27 15:31:20 +00:00
scheglov@google.com
46b9b138d6
Move Tokenfactory, AstFactory and ElementFactory from tests to the testing/ Folder.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//351283003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37748 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-26 17:30:25 +00:00
scheglov@google.com
6b6467a9ca
New analyzer snapshot.
...
R=paulberry@google.com , brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//348673002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37516 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-19 20:58:28 +00:00
scheglov@google.com
d06a1cff08
New analyzer snapshot.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//322603002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37096 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-06 19:48:47 +00:00
scheglov@google.com
5c5e55205c
Formatter: fix for long multiline strings.
...
R=brianwilkerson@google.com , pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//322563002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37088 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-06 17:25:56 +00:00
scheglov@google.com
591ecb6f1e
Formatter: keep a right parenthesis ')' with the last argument.
...
R=brianwilkerson@google.com , pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//321513006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37087 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-06 17:09:51 +00:00
scheglov@google.com
be92cd5009
Tweaks for long formal parameters and method body '{' formatting.
...
R=brianwilkerson@google.com , pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//320503002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37084 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-06 15:33:56 +00:00
scheglov@google.com
d83c344f43
Formatter: don't indent EOL comment at the beginning of a line.
...
R=brianwilkerson@google.com , pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//319063004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37083 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-06 15:32:22 +00:00
scheglov@google.com
979d9be919
Formatter: do not use a space when using < and > for a map literal.
...
R=brianwilkerson@google.com , pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//322483002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37082 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-06 15:29:54 +00:00
scheglov@google.com
555bc4ef2d
New analyzer snapshot.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//294903015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36511 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-22 16:58:29 +00:00
brianwilkerson@google.com
7b4b6ff25b
Parse defined variables in command-line analyzer. We can't actually make use of them until we translate a new version, but it's one step closer.
...
R=pquitslund@google.com
Review URL: https://codereview.chromium.org//290733010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36508 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-22 16:45:19 +00:00
scheglov@google.com
af851cdcdc
New analyzer snapshot (with CaughtException).
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//285423002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36256 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-16 01:43:54 +00:00
scheglov@google.com
862a54b592
New analyzer snapshot.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//267293006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35872 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-07 22:06:01 +00:00
scheglov@google.com
593096bef2
New analyzer snapshot.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//263913003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35704 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-02 20:06:26 +00:00
pquitslund@google.com
c9bf850f58
Support for new 'deferred' import declaration modifier.
...
R=brianwilkerson@google.com , jwren@google.com
Review URL: https://codereview.chromium.org//264473002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35553 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-29 23:06:25 +00:00
pquitslund@google.com
7095d194ab
Test fixes to catch up with Parser changes (dartbug.com/18315).
...
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org//254133006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35547 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-29 22:23:25 +00:00
scheglov@google.com
496aa45ed1
New analyzer snapshot. Sorted unit members.
...
New Character utilities.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//259773005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35468 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-26 22:37:24 +00:00
paulberry@google.com
0af02e38a1
Comment out generated resolver tests (TBR).
...
Review URL: https://codereview.chromium.org//252723002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35427 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-25 15:38:43 +00:00
paulberry@google.com
6c000ea2cb
New analyzer snapshot, based on r35422.
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org//257773008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35426 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-25 15:18:19 +00:00
scheglov@google.com
d1cc18b5e1
New analyzer snapshot.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//247053004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35270 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-22 17:10:47 +00:00
scheglov@google.com
314fd76902
New analyzer snapshot.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//243263004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35179 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-18 19:55:14 +00:00
pquitslund@google.com
9f93ab5937
Annotation whitespace convention fixes (dartbug.com/17837).
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org//225863005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34902 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-09 22:22:31 +00:00
scheglov@google.com
f8e1c92a55
Comment out resolver tests to fix VM bot.
...
TBR
R=jwren@google.com
BUG=
Review URL: https://codereview.chromium.org//228323003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34895 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-09 20:46:57 +00:00
pquitslund@google.com
3edb0efcf4
Fix constructor initializer space conventions (dartbug.com/17642).
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org//231743002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34893 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-09 20:25:36 +00:00
scheglov@google.com
e5652e0e90
New analyzer snapshot with MapIterator.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//229653004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34891 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-09 20:18:01 +00:00
scheglov@google.com
6da7a82a20
Fix for translation of \!= to \!identical(), but use == and \!= for Enum.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//221483002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34636 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-02 03:09:22 +00:00
scheglov@google.com
1145c19860
Rollback pkg/analyzer that breaks code_transformers
...
R=blois@google.com , brianwilkerson@google.com , sigmund@google.com
BUG=
Review URL: https://codereview.chromium.org//214593008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34479 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-27 20:29:08 +00:00
scheglov@google.com
240b4138ce
Translate Java enums to Dart constants.
...
1. Restore "this.field" field formal initializers.
2. Tweaks for several Java places - mostly to the constructors; but also duplicate HintCode messages (in Dart we cannot get values of constant values final fields).
3. Translate field that are not written to Dart final fields and also to field initializers, even if there are no property for them.
4. And constant enums.
5. pkg/code_transformers/test/resolver_test has to be skipped, I cannot fix it myself.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//214253002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34474 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-27 15:37:37 +00:00
scheglov@google.com
eedaae10e6
Optimizations for hashCode.
...
This improves Dart-based analyzer performance.
dart2js: 12500 -> 11600 ms, about 900 ms or 7%.
blueshift: 23500 -> 21500 ms, about 2000 ms or 8%.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//207853002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34318 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-24 18:18:14 +00:00