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
scheglov@google.com
b80f5b1e6d
Remove trailing spaces in analyzer_experimental
...
Otherwise Editor does this on the first save and creates unmanagable CL.
R=jwren@google.com
BUG=
Review URL: https://codereview.chromium.org//16256021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23570 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 21:33:08 +00:00
scheglov@google.com
7e96d2372f
analyzer_experimental snapshot
...
R=brianwilkerson@google.com , messick@google.com
BUG=
Review URL: https://codereview.chromium.org//16302002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23515 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-02 22:00:29 +00:00
devoncarew@google.com
460a15696f
Remove unused (and little used) cli flags from dartanalyzer.
...
R=danrubel@google.com , scheglov@google.com
Review URL: https://codereview.chromium.org//16231008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23441 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 21:06:16 +00:00
devoncarew@google.com
37b90d3bcb
Change the cmd-line output for warnings from foo.dart:line:col to foo.dart, line x, col y.
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org//15853005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23422 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 16:25:23 +00:00
scheglov@google.com
7981ec4835
Issue 10871. Fix for analyzing file without absolute path
...
R=devoncarew@google.com
BUG=
Review URL: https://codereview.chromium.org//15780010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23314 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 00:42:50 +00:00
sgjesse@google.com
9d6a64e81b
Merge the dart:uri library into dart:core and update the Uri class
...
This merges the dart:uri library into dart:core removing the dart:uri library. Besides moving the library the Url class has been changed.
* Removed existing Uri constructor as it was equivalent with Uri.parse
* Remamed constructor Uri.fromComponents to Uri
* Moved toplevel function encodeUriComponent to static method Uri.encodeComponent
* Moved toplevel function decodeUriComponent to static method Uri.decodeComponent
* Moved toplevel function encodeUri to static method Uri.encodeFull
* Moved toplevel function decodeUri to static method Uri.decodeFull
* Rename domain to host
* Added static methods Uri.encodeQueryComponent and Uri.decodeQueryComponent
* Added support for path generation and splitting
* Added support for query generation and splitting
* Added some level of normalization
R=floitsch@google.com , lrn@google.com , nweiz@google.com , scheglov@google.com
BUG=
Review URL: https://codereview.chromium.org//16019002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23266 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 13:35:01 +00:00
scheglov@google.com
cb3bbdc62d
Manual fixes for Dart^2 analyzer
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//16059002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23195 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-25 19:09:39 +00:00
scheglov@google.com
59f9b337e5
Report StaticWarningCode.IMPORT_DUPLICATED_LIBRARY_NAME
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//15004020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22584 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 16:08:41 +00:00
nweiz@google.com
15d6f64ab1
Fix a RegExp in analyzer_experimental/test/utils for Windows.
...
TBR
Review URL: https://codereview.chromium.org//14865015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22571 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 21:45:13 +00:00
nweiz@google.com
22793020de
Fix the intl tests.
...
R=alanknight@google.com
Review URL: https://codereview.chromium.org//15059013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22568 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 21:22:01 +00:00
nweiz@google.com
5f3be4f352
Add some user-friendly utility functions to pkg/analyzer_experimental.
...
R=alanknight@google.com , amouravski@google.com , brianwilkerson@google.com , scheglov@google.com
Review URL: https://codereview.chromium.org//14998006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22567 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 21:05:44 +00:00
scheglov@google.com
cd7b530ca5
Fix build: disable CommandLineOptions tests.
...
TBR
R=pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//14721006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22389 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 20:00:14 +00:00
scheglov@google.com
29a3f86399
Dart-based command-line analyzer.
...
R=pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//14767014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22385 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 18:34:37 +00:00
scheglov@google.com
dd6dcaf031
New analyzer_experimental snapshot.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//14050010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22134 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-29 17:55:57 +00:00
nweiz@google.com
c7467cf6b5
Support a subset of String.format in java2dart.
...
This is enough to get analyzer errors formatting, which is very useful for any
Dart code using analyzer_experimental.
Review URL: https://codereview.chromium.org//14520017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22093 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-26 22:43:18 +00:00
dgrove@google.com
b2c3ec3d20
Remove version, which allows the version to be updated automatically
...
when the package is uploaded.
Review URL: https://codereview.chromium.org//14477003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21956 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 16:18:01 +00:00
scheglov@google.com
ff7f4ecbd7
Generate unique names less aggressively.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//14161021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21661 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 00:08:02 +00:00
scheglov@google.com
b3fe462ed0
Issue 9845. Compare runtime types using ==.
...
https://code.google.com/p/dart/issues/detail?id=9845
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//14205011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21649 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 19:07:06 +00:00
scheglov@google.com
4c753a9806
New Analysis Engine snapshot.
...
R=pquitslund@google.com ,brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//14308011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21585 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 22:21:16 +00:00
floitsch@google.com
466d6670c1
Refactor Future constructors.
...
BUG=
Review URL: https://codereview.chromium.org//14070010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21517 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:24:27 +00:00
floitsch@google.com
759a366cea
Remove insertRange.
...
Review URL: https://codereview.chromium.org//13956006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21464 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:20:16 +00:00
scheglov@google.com
9b392dc79c
ListWrapper tweak.
...
R=devoncarew@google.com
BUG=
Review URL: https://codereview.chromium.org//14110007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21410 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-14 19:16:58 +00:00
scheglov@google.com
2ec62cfb39
Backport analyzer-experimental changes to 'resources'.
...
R=devoncarew@google.com
BUG=
Review URL: https://codereview.chromium.org//13884016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21385 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 20:16:49 +00:00
ajohnsen@google.com
4091b19941
Add length getter to ListWrapper.
...
BUG=
Review URL: https://codereview.chromium.org//14231002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21339 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 09:44:50 +00:00
ajohnsen@google.com
044f0d02eb
Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove.
...
BUG=
Review URL: https://codereview.chromium.org//14173003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21338 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 09:34:52 +00:00
scheglov@google.com
64f07b2a5e
Tweak Resolver driver sample to prevent warning from new analyzer.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//13095014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20552 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 00:31:09 +00:00
scheglov@google.com
7533136284
New Analysis Engine translation.
...
R=pquitslund@google.com
BUG=
Review URL: https://codereview.chromium.org//12803014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20420 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 22:13:50 +00:00