Commit Graph

83 Commits

Author SHA1 Message Date
pquitslund@google.com 0ba745e63d Formatter fixes and tweaks.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26462 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-21 19:40:53 +00:00
sgjesse@google.com 38506f9d57 Remove the LineTransformer from dart:io
The LineTransformer has been retired, and is replaced with LineSplitter from dart:convert

R=floitsch@google.com, nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26419 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-21 07:35:46 +00:00
pquitslund@google.com 8951d19925 Formatter checkpoint.
Largely cleanup in a move from string literals to accessing the corresponding node tokens.

I'm also trying on an approach to tracking the need for preceding (and trailing) newlines.  In general I don't love state flags where I can avoid them but the alternatives were even more ungainly to my eye.

Thoughts, of course, are most welcome!

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26370 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-20 16:50:03 +00:00
scheglov@google.com a3b42c7b8f Fix warnings in analyzer_experimental
R=pquitslund@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26212 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-15 20:07:49 +00:00
sgjesse@google.com 353428a918 Remove the Path class from dart:io
The Path class in dart:io has been deprecated for some time
now. It was scheduled to be removed on August 11th, so here it
goes.

dart:io still uses the Path class internally, but now it is
private. I will trim it down to what is actually used in a
follow-up change.

R=ahe@google.com, devoncarew@google.com, whesse@google.com
BUG=http://dartbug.com/11666

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26181 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-15 10:10:53 +00:00
pquitslund@google.com 693d048c15 Provisional formatter main.
For testing purposes primarily, a formatter main entry point.

Revisions and refinements to follow.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26087 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-13 21:48:43 +00:00
pquitslund@google.com 6b3d069dd2 Formatter cleanup.
Migration to emitToken begins...

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26079 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-13 20:08:41 +00:00
pquitslund@google.com 88e634dba0 Formatter token emission baby-steps.
Still playing around with emitToken(..) as a general strategy.  Next step will likely be to migrate all appropriate print(..) calls to it.  (Along the way a great rename will happen too.)

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26064 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-13 17:06:23 +00:00
kevmoo@j832.com 47e8d45430 analyzer_exp fixes
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25946 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-08 21:07:01 +00:00
pquitslund@google.com f6b9baced7 Formatter checkpoint.
Review URL: https://codereview.chromium.org//22403004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25941 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-08 19:51:32 +00:00
scheglov@google.com 0039dfca51 Remove dart:io dependency from scanner/ast/parser tests.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25935 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-08 17:46:50 +00:00
scheglov@google.com c52c1736ee New analyzer_experimental snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25902 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 21:15:25 +00:00
scheglov@google.com 62d6ac752c Fix for NPE when convert error without source.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25615 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-30 14:53:41 +00:00
gram@google.com fb62473ebf Add missing newline after Actual value in fail message.
Remove the BasMatcher class; it made some sense when we had both 'interface'
and 'class' but adds no value now.
Fix a comment in the CustomMatcher documentation.
Fix tests affected by these changes.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25356 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-23 19:48:26 +00:00
pquitslund@google.com a5ed18ebdb Formatter check-point (blank-space preservation experiment).
Possibly not the long-term approach but an early checkpoint of one approach to preserving user defined blank spaces (between members).

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25125 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 21:44:28 +00:00
scheglov@google.com 4ac2a1452c New analyzer_experimental snapshot.
FYI bot is red, as I can see this is caused by VM crashes.
https://code.google.com/p/dart/issues/detail?id=11873

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25121 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 19:32:30 +00:00
scheglov@google.com b022ab975f Use pathos.fromUri() to make it work on Windows.
I was able to reproduce failure on Windows bots.
With this CL should work on both Windows and Posix.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25055 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-16 16:35:44 +00:00
scheglov@google.com 3aaa360346 Complete java_io.dart rallback.
TBR

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25029 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 22:36:13 +00:00
scheglov@google.com 9783051dfb Try to fix Windows bots. Use absolute path instead of canonical.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25027 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 22:20:12 +00:00
scheglov@google.com 0f5432dc17 Fix for JavaFile.getCanonicalPath(), don't use Path.
I've tested JavaFile manually separately; and ran shared tests.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25016 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 19:35:15 +00:00
rnystrom@google.com a9d24edd0f Rename "pathos" package to "path".
R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24964 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-12 17:54:48 +00:00
scheglov@google.com cdfb38b317 New analyzer_experimental snapshot.
The biggest change is in formatting long list literals.
It looks now better and also does not turn Editor into text mode for couple files.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24903 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-11 01:51:53 +00:00
pquitslund@google.com 319f5b5425 Initial indent fix and a few more tests.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24825 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-08 21:58:55 +00:00
pquitslund@google.com 00845ce4c6 Formatter re-think/updates.
A redesign striving for simplicity and a riff on ToSourceASTVisitor.  Some shuffling and renaming still to come.  Line and Token abstractions are also quite likely to change.  Consider this a baby-step.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24758 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 22:22:20 +00:00
scheglov@google.com 532aa2fab4 New analyzer_experimental snapshot.
Fixes also compilation problem in java2dart translator.

R=pquitslund@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24744 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 19:47:59 +00:00
scheglov@google.com 69eaca5ebd Simplify constructors translation, improve code style.
This CL stops generating and using "_impl" methods with constructor implementation.
This is actually required only locally, when there are other statements aside of redirecting constructor invocation.
So, this may be done later, during constructors optimizing in ConstructorSemanticProcessor.
For now we just transform placeholder of redirecting constructor invocation into the actual initializer.

Also, this CL adds more optimizations into ConstructorSemanticProcessor, such as:
1. removing empty constructor body;
2. enum constructor tweaks.

Plus new snapshot of analyzer_experimental with these changes in translation applied.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24701 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 17:45:11 +00:00
scheglov@google.com 8b0684be54 New analyzer_experimental snapshot.
R=brianwilkerson@google.com, devoncarew@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24613 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 22:34:01 +00:00
sgjesse@google.com 887c8e7596 Move getters from Options to Platform
The getters for executable, script and version are now statics on
Platform. I kept them on Options for now, but updated most tests to
use Platform.

R=ajohnsen@google.com, floitsch@google.com, iposva@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24401 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 12:56:23 +00:00
pquitslund@google.com 4d097b2712 Dart formatter checkpoint.
More babysteps. Note: some of the style is tentative (e.g., still trying on cascades).

Comments welcome.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24255 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-20 22:35:48 +00:00
nweiz@google.com 66404438fc Add toUri and fromUri functions to pathos.
This also replaces the ubiqutous pathToFileUri/fileUriToPath functions.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24196 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-19 19:06:19 +00:00
scheglov@google.com 0bd1a231e5 Fixes for forgotten review comments.
Sorry, I forgot to fix the most important review comments from previous CL = https://codereview.chromium.org/16964008/

R=rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24157 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-18 18:37:55 +00:00
scheglov@google.com 77b659d93b Tweak j2d for String.indexOf(s,int) semantics.
In Parser.parseCommentReferences() we attempted to use index + 1, which was length + 1.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24144 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-18 15:38:45 +00:00
scheglov@google.com 2329919e5e Fix build after analyzer_experimental changes
TBR

We have to disable converting to properties for some Parser methods, which are used via reflection.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24118 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-18 00:05:00 +00:00
scheglov@google.com fd7dde1aef Code coverage, something is working now.
For now only 'statement' level coverage.

Review this, please.
Any comments about Dart code style, using libraries, etc will be helpful!

There are some Dart VM changes, which I'm _not_ going to commit.
I'm waiting for https://codereview.chromium.org/16368002/
So, ignore them.

R=pquitslund@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24116 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 23:24:18 +00:00
scheglov@google.com 36ace54ada Convert isX() methods to isX getter.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24115 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 23:02:36 +00:00
scheglov@google.com 4d79a15ce3 New analyzer_experimental snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24109 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 21:04:45 +00:00
gram@google.com 50c5137e55 Change MatchState to Map.
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24046 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 19:46:16 +00:00
scheglov@google.com b9950462a2 New analyzer_experimental snapshot.
Includes recent disambiguation and fixes.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23878 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 20:08:54 +00:00
scheglov@google.com a2e1288eec Code coverage server babysteps.
Largely just structure and (happy part of) the life cycle.
It even works in trivial application, although it does nothing interesting within the touch() function.

R=pquitslund@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23876 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 19:50:36 +00:00
ajohnsen@google.com 3912edcc0e Hide IOException from java_core.dart in analyzer_experimental.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23850 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 13:35:07 +00:00
scheglov@google.com 0049091064 Clean up analyzer_experimental after Annotation disambiguation.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23836 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 23:55:54 +00:00
scheglov@google.com bb87681f61 Fixing build.
TBR

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23796 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 04:58:59 +00:00
scheglov@google.com 20a078aefb Improve java2dart code style - relax 'don't reference variable name in its initializer'.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23795 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 04:05:50 +00:00
scheglov@google.com 9b27cae892 New analyzer_experimental snapshot.
Mainly to fix missing import in html.dart

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23792 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-09 19:13:20 +00:00
pquitslund@google.com 7ee54e63c1 Removing accidental symlink in quest for build greenness [TBR].
Review URL: https://codereview.chromium.org//16668002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23770 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 20:12:27 +00:00
pquitslund@google.com 8fe83e6d51 Dart formatter babysteps.
Largely scaffolding and basic datastructures.  Very much subject to change.

Dart style pointers greatly appreciated! :)

R=brianwilkerson@google.com, messick@google.com, rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23769 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 19:53:40 +00:00
scheglov@google.com c7eeff273b Quick check for self in InterfaceTypeImpl.getLeastUpperBound()
This reduces co19 time from 60 to 45 seconds for DDA.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23714 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 19:29:22 +00:00
scheglov@google.com 80fea8fd8e More fixes for java2dart and status files.
Now DDA passes/fails the same tests as Java version.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23705 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 18:13:44 +00:00
scheglov@google.com d775a9cef3 Fixes for translator and DDA status files.
Almost everything is again translated automatically.

There are three fragments which we have to replace to source level.
One for performance reasons; two others - to avoid using IO.

Now we are green for co19 tests, execute 4034 of them in 2:07, 132 failures.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23624 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 00:59:32 +00:00
scheglov@google.com 0d3e47da2c Basic dart^2 analyzer tests running.
Status file only for co19 now, more status files in next CL.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23602 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 16:09:13 +00:00