Commit Graph

4276 Commits

Author SHA1 Message Date
scheglov@google.com 34255da9a2 Support for @DartName and @DartOptional annotations.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33472 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-10 01:12:42 +00:00
scheglov@google.com 844751f9ed Support for DartBlockBody, DartExpressionBody, DartOmit in java2dart.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33468 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-07 23:53:28 +00:00
jwren@google.com dbed544450 Analzyzer test fixes
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33464 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-07 23:18:17 +00:00
scheglov@google.com a674327095 Translate private Java members to private Dart members.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33453 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-07 20:59:57 +00:00
jwren@google.com f4a2d2ae9b Change to dart command line analyzer- Remove the rich toString in AnalyzerError to prevent .contents from being called on a source.
R=brianwilkerson@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33452 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-07 20:55:25 +00:00
scheglov@google.com 151c4c3a7d Improved 'has' properties translation.
New analyzer snapshot.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33399 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-06 22:18:26 +00:00
scheglov@google.com 9d622fc1d9 Unroll 'synchronized {}' in java2dart.
...and corresponding 'analyzer' snapshot.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33318 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-05 02:30:21 +00:00
scheglov@google.com 12558a8511 New analzyer snapshot.
Replace isInstanceOf() with a predicate.

Tweaks for other packages.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33304 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-04 21:50:40 +00:00
scheglov@google.com 1f8c20a04d Update and analyzer snapshot with AST -> Ast rename.
R=brianwilkerson@google.com, rnystrom@google.com, blois@google.com, karlklose@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33296 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-04 20:02:28 +00:00
scheglov@google.com 79e687be71 Add timing info for file IO into Dart based analyzer.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33191 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-01 19:47:36 +00:00
scheglov@google.com 7f73657ad6 New analyzer snapshot.
No 'isInstanceOf' changes yet.
Just current state with changes required to adopt to the API changes in Java.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33176 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-28 22:52:15 +00:00
scheglov@google.com a2ff040825 Option to disable Angular in Dart-based Analyzer.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32936 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 22:32:28 +00:00
pquitslund@google.com ca7f5ebf71 Support for removing empty statements (dartbug.com/16810).
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32918 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-21 19:20:32 +00:00
pquitslund@google.com 7b7b87ed97 Fix to ensure decls with initializers get their own lines (dartbug.com/16849).
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32873 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 22:46:24 +00:00
scheglov@google.com 27fcf8df64 Issue 16827. Add 'set length' to NodeList.
https://code.google.com/p/dart/issues/detail?id=16827

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32746 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-18 17:06:50 +00:00
scheglov@google.com 1c5bdef314 Fixes for exit problems.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32446 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-07 19:32:51 +00:00
pquitslund@google.com 79f352e4c2 Constructor initializer indent fixes.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32396 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-07 00:15:24 +00:00
pquitslund@google.com 18c4e5c74e Fixes for empty class and method bodies.
See Kevin's nits CL for more context: https://codereview.chromium.org/153623006/

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32378 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-06 19:28:18 +00:00
scheglov@google.com bd4d6033ba New analyzer snapshot.
1. Rename WorkManagerPriority -> SourcePriority.

2. Replace CharSequence with String.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32373 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-06 18:09:20 +00:00
scheglov@google.com a85da5e2d8 New analyzer snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32362 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-06 15:31:22 +00:00
scheglov@google.com 5f9e9b47e5 Fix for JavaFile path in DDA.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32361 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-06 15:08:29 +00:00
pquitslund@google.com eaae0b64dc Fix to ensure no breaks after new and general zero-length space support (dartbug.com/16379).
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32332 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-05 18:41:14 +00:00
pquitslund@google.com 5c26be4b49 Indent fix for trailing comments (dartbug.com/16383).
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32287 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-04 20:50:12 +00:00
pquitslund@google.com 07888b2f25 Indent fix for switch statement defaults (dartbug.com/16406).
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32174 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-30 21:39:28 +00:00
pquitslund@google.com 18ad816d5f Max line length test fix (dartbug.com/16405).
The rub: two off by ones! --- Proof that two wrongs don't make a right! :)

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32166 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-30 18:35:17 +00:00
pquitslund@google.com 9d5f39180c Empty map formatting fix (dartbug.com/16382).
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32143 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-29 22:02:26 +00:00
pquitslund@google.com 4260d5a585 Fix to allow single method cascades to fit on one line (dartbug.com/16384).
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32138 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-29 20:57:44 +00:00
scheglov@google.com becf22691a New analyzer snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32135 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-29 20:03:33 +00:00
pquitslund@google.com d6d365cdcc Format fix for assert statements.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32133 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-29 19:46:52 +00:00
pquitslund@google.com b66342b854 Remove workaround for missing setter function returns (dartbug.com/15914).
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32091 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-28 22:51:27 +00:00
pquitslund@google.com 99595ef86b Remove workaround for missing abstract keyword for ClassTypeAliases (dartbug.com/15912).
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32086 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-28 22:25:38 +00:00
pquitslund@google.com 13961dc1f6 Improved linebreaking for imports (darbug.com/16366) and non-breaking line support.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32084 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-28 21:37:05 +00:00
scheglov@google.com 37b6debef7 New analyzer snapshot.
There are some problems with JDT and line comments.
Interesting, that it works almost everywhere, and also worked coupld weeks ago.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32052 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-28 04:24:41 +00:00
pquitslund@google.com aac07d9e6b dartfmt line wrapping bypass option support.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32034 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-27 22:23:52 +00:00
pquitslund@google.com f04199eda4 Line pre-chunking.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31941 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-18 00:17:12 +00:00
scheglov@google.com 3ad3ff9a2e New analyzer snapshot.
Extracts SdkLibrariesReader_LibraryBuilder into sdk.dart library.
https://code.google.com/p/dart/issues/detail?id=14791

R=brianwilkerson@google.com, devoncarew@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31939 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-18 00:05:43 +00:00
pquitslund@google.com 7605b96c4b Interpolated String hack-around.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31846 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-15 19:18:25 +00:00
pquitslund@google.com fdb7d2f1a0 Whitespace testing fixes and bit-flip to turn on simple line breaking.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31791 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-14 16:46:05 +00:00
scheglov@google.com 38d028e67f Issue 8742. Preserve leading line comments during java2dart translation.
https://code.google.com/p/dart/issues/detail?id=8742

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31790 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-14 16:28:59 +00:00
pquitslund@google.com 63aefc6dd0 Line-break indenter plumbing.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31759 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 22:08:28 +00:00
pquitslund@google.com 400fb9e232 Line breaking plumbing (continued).
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31751 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 18:20:54 +00:00
scheglov@google.com 7a418f273f Add copyright header to generated analyzer files.
R=brianwilkerson@google.com, danrubel@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31743 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 16:01:36 +00:00
scheglov@google.com 06b58b48de Generate names for anonymous Java classes using enclosing classes and members.
R=brianwilkerson@google.com, devoncarew@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31741 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 16:00:21 +00:00
scheglov@google.com cf456d685b Translate index.
No tests yet.
I'll need some time to find out how to translate Mockito based tests to Dart.

R=brianwilkerson@google.com, devoncarew@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31729 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 01:12:17 +00:00
scheglov@google.com 9efe9ba519 New analyzer snapshot.
Mostly to remove unnecessary casts.
But also includes your latest changed for Alan.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31717 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 22:27:52 +00:00
pquitslund@google.com 4cb2537a37 Line-breaking plumbing and bits and pieces.
Some tentative abstractions for implementing simple line breaking algorithms.

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31683 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-09 23:04:33 +00:00
scheglov@google.com 217d980fcd Analyzer snapshot.
Rewrite TimeCounter to use Stopwatch.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31623 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 20:27:55 +00:00
pquitslund@google.com b8ce88220a Fix to handle loop variables not declared in the for.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31554 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 17:02:08 +00:00
pquitslund@google.com ad48998e7e Formatter fixes (symbols, natives, function type aliases, oh my).
Last stragglers that make a run over the SDK go green (modulo patch files that is).

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31513 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-06 22:22:53 +00:00
pquitslund@google.com bff4cb2a13 Formatter support for metadata.
As per the spec:

"Metadata can appear before a library, class, typedef, type parameter, constructor, factory, function, field, parameter, or variable declaration and before an import or export directive."

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31502 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-06 19:15:08 +00:00