Devon Carew
3e33c3d0fc
Eliminate analysis warnings in pkg/ code.
...
Change-Id: I571581bf16502c1698932c03313777aa8a9ee081
Reviewed-on: https://dart-review.googlesource.com/63983
Commit-Queue: Devon Carew <devoncarew@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2018-07-06 21:28:07 +00:00
Vijay Menon
499a6633c6
Remove pubspec
...
This is breaking travis - maybe travis auto-runs pub get?
See:
https://travis-ci.org/dart-lang/sdk/jobs/210756646
TBR=devoncarew@google.com
Review-Url: https://codereview.chromium.org/2750673003 .
2017-03-13 16:23:36 -07:00
Devon Carew
b80390d0f5
Have dartdevc support --version.
...
BUG=
R=vsm@google.com
Review-Url: https://codereview.chromium.org/2747743003 .
2017-03-13 16:10:21 -07:00
Vijay Menon
68d2121fd0
Use .packages instead of pubspec.yaml
...
This runs tests against sdk versions of packages instead of whatever
random version we have in pubspec.yaml.
Travis may be unhappy with the lack of a pubspec.yaml. Here's the try:
https://travis-ci.org/dart-lang/sdk/builds/163270204
R=jmesserly@google.com , rnystrom@google.com
Review URL: https://codereview.chromium.org/2371113004 .
2016-09-28 09:49:31 -07:00
John Messerly
a4734d4b33
fix #27353 , support @checked covariant parameters in DDC
...
Seems pretty straightforward. Just added a simple test for now.
R=leafp@google.com
Review URL: https://codereview.chromium.org/2340463009 .
2016-09-15 15:42:04 -07:00
Vijay Menon
ab47c33f3d
Bump pub version
...
We seem to be hitting an error on travis:
https://travis-ci.org/dart-lang/sdk/jobs/159136296
The pubspec for analyzer 0.28.2-alpha.0 from path has version 0.29.0-alpha.0.
The command "pub get" failed and exited with 65 during .
Looks like the analyzer version bumped forward and was incompatible
with the pubspec.lock entry? Is there a way to avoid this?
TBR=rnystrom@google.com ,jmesserly@google.com
Review URL: https://codereview.chromium.org/2336443002 .
2016-09-11 20:06:36 -07:00
Vijay Menon
b220f63954
Travis config
...
See try-run here: https://travis-ci.org/dart-lang/sdk/builds/156699868
R=kevmoo@google.com
Review URL: https://codereview.chromium.org/2301833002 .
2016-09-01 08:33:50 -07:00
John Messerly
a076edad94
roll analyzer
...
R=vsm@google.com
Review URL: https://codereview.chromium.org/2254883002 .
2016-08-17 21:10:21 -07:00
Vijay Menon
8fec051a8e
Mark recursive_inheritance_test as passing
...
This will get the dev and master bots green.
Will need to bump the pubspec on analyzer (once published) to make stable green after this.
R=leafp@google.com
Review URL: https://codereview.chromium.org/2214263005 .
2016-08-05 09:35:01 -07:00
Priscilla Lee
d2ec49d1f7
Working compiler in browser.
...
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org/2183603003 .
2016-07-29 09:18:13 -07:00
John Messerly
0f29ee9618
Remove DDC custom error list now that strong mode analyzer handles it
...
R=leafp@google.com
Review URL: https://codereview.chromium.org/2102053003 .
2016-07-27 13:10:57 -07:00
John Messerly
d41215cd54
upgrade analyzer version
2016-06-14 14:09:41 -07:00
John Messerly
caff16a49a
merged
2016-06-14 13:36:18 -07:00
John Messerly
5c67ae3bcc
Use trackCacheDependencies for performance speedup
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2059253003 .
2016-06-13 11:27:03 -07:00
John Messerly
1c0759a60b
DDC changes for Analyzer src/task/strong/info.dart refactor
...
Review CL: https://codereview.chromium.org/2057373003/
2016-06-13 10:37:12 -07:00
John Messerly
ec945eed6f
enable compatiblity with 1.18 SDKs
...
fixes #584 , works around analyzer message #583
R=leafp@google.com
Review URL: https://codereview.chromium.org/2048463002 .
2016-06-06 17:29:02 -07:00
John Messerly
17298f330d
upgrade to Analyzer with speed improvements
...
Review URL: https://codereview.chromium.org/2003073002 .
2016-05-23 09:48:05 -07:00
Vijay Menon
d15a603538
Allow the SDK to be set via a summary file
...
The generated summary file matches the generated DDC sdk - i.e., it
does not include dart:io. I modified the codegen_tests to the summary
and had to prune the parts of unittest that relied on dart:io.
Paul / Konstantin: can one of you please look at the summary part?
Bob: can you please look at the unittest changes?
R=rnystrom@google.com , scheglov@google.com
Review URL: https://codereview.chromium.org/1982853002 .
2016-05-16 17:10:08 -07:00
Jacob Richman
9520e96340
Switch to actual unittest, stack trace, and path packages. Tag tests as failing that were ignored due to the incomplete unittest library. Make running of unittests a bit more robust by wrapping them inside a mocha test to avoid unpredictable behavior due to interleaving async mocha and unittests.
...
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org/1956513004 .
2016-05-06 12:28:44 -07:00
Vijay Menon
7d32105a82
Pickup latest analyzer fixes
...
Note the new errors in sdk. Did we change something wrt overrides?
R=leafp@google.com
Review URL: https://codereview.chromium.org/1951263004 .
2016-05-05 16:30:39 -07:00
Jacob MacDonald
308fa5ccb4
Add bazel worker support to the dev compiler.
...
BUG=
R=jmesserly@google.com , vsm@google.com
Review URL: https://codereview.chromium.org/1884073003 .
2016-04-15 06:51:40 -07:00
John Messerly
0c148ecef4
Implement modular compilation
...
Highlights
* compile one module at a time
* use summaries to speed up compiles
* use command runner so we can add more commands later
* some long needed renames and file organization
* various other technical debt has been addressed
Lowlights
* lost node.js runner/tests (node output format still supported)
* possibly lost some closure support/workarounds (format still supported)
* needs more end-to-end tests of the new system
R=vsm@google.com
Review URL: https://codereview.chromium.org/1879373004 .
2016-04-14 11:28:12 -07:00
vsmenon
778c63755d
Update pubspec.yaml
2016-04-01 09:10:02 -07:00
vsmenon
4f17bacd8a
Update pubspec.yaml
2016-03-31 15:32:52 -07:00
John Messerly
e8bee43919
More analyzer updates, and handle negative_tests
...
Also fixes node_test to not overwrite main SDK log
R=vsm@google.com
Review URL: https://codereview.chromium.org/1840203002 .
2016-03-29 15:16:44 -07:00
John Messerly
63a119bd86
fix to run against latest analyzer
...
hard part was dealing with the new for-each changes
the good news is the new for-each logic simplifes our await-for checking
R=leafp@google.com , rnystrom@google.com
Review URL: https://codereview.chromium.org/1840713003 .
2016-03-28 14:22:36 -07:00
John Messerly
73159b6c1e
Remove code that requires whole-program compile
...
This change removes functionality that is not part of the core Dart Dev
Compiler, in particular those features that were not designed for
incremental/modular compilation.
For a while, the primary way to use DDC will be as a compiler invoked by
a build system, e.g. make or bazel or some node.js based-build system.
We'd love to see the user functionality provided by these return.
In particular, a well designed server+watcher system would be a huge
boost to productivity!
I'll see about moving over HTML reporting to Analyzer CLI. It has a lovely UI.
Thanks to everyone who contributed these features.
The following features were removed:
* DDC transformer. Transformers require whole world, in memory files.
* DDC server. The server has its own mini-build system.
* Various kinds of reporting. These should be moved to Analyzer CLI.
Note: batch compiler and the node runner are left for now.
R=vsm@google.com
Review URL: https://codereview.chromium.org/1788973002 .
2016-03-15 11:30:50 -07:00
vsmenon
2cb31f7219
Update pubspec.yaml
2016-03-15 10:33:58 -07:00
John Messerly
93251ee241
upgrade to latest analyzer
...
fixes https://github.com/dart-lang/dev_compiler/issues/471
Changes here are:
* Analyzer now infers list/map literals
* Analyzer changed how isPotentiallyMutated* APIs work, so we need to track current function
* Another fix to arrow functions. We shouldn't skip generating covariant arg checks. If there were any, we use `=> { block }` form rather than `=> expr` form.
R=vsm@google.com
Review URL: https://codereview.chromium.org/1757343002 .
2016-03-03 11:32:54 -08:00
John Messerly
67b24939cd
refactor/simplify nullable inference code
...
Some of the high level changes are:
* visit catch body, fixes #463
* handle temps created by the compiler. These were in some cases treated incorrectly as non-null (see tests diff)
* compute nullable in the same pass as visiting assignments
* simplify visiting += and ++, fix ++ (it was dead code, #463 )
* simplify _isNullable
* if we fail to see a variable declaration, treat it as nullable
* stack trace in catch is treated as non-null
R=vsm@google.com
Review URL: https://codereview.chromium.org/1751963002 .
2016-03-01 16:44:05 -08:00
vsmenon
c54b468584
Update pubspec.yaml
2016-02-22 15:07:47 -08:00
vsmenon
a2841d780f
Update pubspec.yaml
2016-02-19 15:03:47 -08:00
vsmenon
381464a6a7
Update pubspec.yaml
2016-02-18 16:07:01 -08:00
vsmenon
8cc738f468
Update pubspec.yaml
2016-02-12 12:28:49 -08:00
Olivier Chafik
7a373c1984
e2e test for transformer (webdriver + pub serve)
...
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org/1672563002 .
2016-02-12 14:53:17 +00:00
Olivier Chafik
f2a26256e4
Simple transformer to run ddc in pub build/serve
...
- Added simple test that exercises relative and absolute imports
- Introduced FileSystem abstraction to collect compilation outputs /
seed runtime inputs
2016-02-04 19:08:50 +00:00
vsmenon
f89b0931a0
Update pubspec.yaml
2016-01-29 10:15:46 -08:00
vsmenon
cd61e898bd
Update pubspec.yaml
2016-01-28 15:44:43 -08:00
Vijay Menon
a693930830
Roll analyzer to 0.27.2-alpha.1
...
R=jmesserly@google.com
Review URL: https://codereview.chromium.org/1641643004 .
2016-01-28 15:35:59 -08:00
vsmenon
b5b6594319
Update pubspec.yaml
2016-01-13 08:19:29 -08:00
Leaf Petersen
44f2cf3424
Bump the version number and re-baseline codegen/expect
...
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org/1569783006 .
2016-01-08 13:29:08 -08:00
Leaf Petersen
1c119bebb2
Update to latest analyzer
...
Fixes https://github.com/dart-lang/dev_compiler/issues/393
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org/1554683002 .
2016-01-05 15:58:50 -08:00
vsmenon
4f06ba7267
Update pubspec.yaml
2015-12-14 10:37:40 -08:00
Olivier Chafik
c64b7bbe9e
Pin analyzer version to 0.26.2+1 (newer versions break the build, see issue #393 )
2015-12-09 13:29:58 +00:00
Olivier Chafik
6410051fd0
Convert dart_utils.js to input_sdk/lib/_internal/utils.dart ( #310 )
...
BUG=
R=jmesserly@google.com , vsm@google.com
Review URL: https://codereview.chromium.org/1486473002 .
2015-12-01 19:02:43 +00:00
vsmenon
355fe87b8d
Update pubspec.yaml
2015-11-20 14:14:25 -08:00
Devon Carew
2f3e5e51d6
rev to 0.1.11
2015-11-12 23:23:03 -08:00
John Messerly
749d820ce6
fix escape of $ in template strings
...
https://github.com/dart-lang/dev_compiler/issues/379
R=vsm@google.com
Review URL: https://codereview.chromium.org/1426243002 .
2015-11-02 10:32:49 -08:00
Olivier Chafik
5337fc001e
Compile package:js.{rest, spread} helpers.
...
Note: need new package:js release before merging this in (https://github.com/dart-lang/sdk/issues/24623 ). Maybe it's time to think again about sneaking JsName + JsPeerInterface into it? (https://github.com/dart-lang/dev_compiler/issues/135 )
BUG=https://github.com/dart-lang/dev_compiler/issues/310
R=jmesserly@google.com
Review URL: https://codereview.chromium.org/1424133007 .
2015-10-29 18:44:11 +00:00
Devon Carew
097a0234ee
0.1.10
2015-10-29 06:53:49 -07:00