Commit Graph

2256 Commits

Author SHA1 Message Date
Sigmund Cherem a6befe3a1d Add dart_core.js (fixes #89)
R=vsm@google.com

Review URL: https://codereview.chromium.org/986023003
2015-03-10 18:31:32 -07:00
Sigmund Cherem 6d9564b4ff Support browser caching using hashes in serverMode (fixes #93, fixes #92).
Now the HTML can include a hash in the URL for cachable resources, and the serve knows how to include cache-control headers.

In the process of doing so, I had to change a couple things that made it possible to fix #92 as well (producing different output in the command-line than in server mode).

R=vsm@google.com

Review URL: https://codereview.chromium.org/993213003
2015-03-10 18:27:23 -07:00
Vijay Menon 135c1e586a Small fixes
I hit these compiling angular.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/992973002
2015-03-10 10:25:35 -07:00
Vijay Menon 74476b5e4c Log the runtime type of messages
This makes is a little easier to investigate errors.

R=sigmund@google.com

Review URL: https://codereview.chromium.org/993513005
2015-03-09 11:46:27 -07:00
Sigmund Cherem 4e4dd98e6b Add widget to display errors, and report graph errors correctly.
This fixes the compiler so that all error messages in dependency_graph are reported via the reporter and unifies how errors are constructed in other places as well. With all errors reported together, we use a widget (adapted from polymer) to display the error messages as part of the app in server mode.

R=vsm@google.com

Review URL: https://codereview.chromium.org/988483006
2015-03-09 11:37:22 -07:00
Sigmund Cherem ca80f2c473 Add JavaScriptSourceNode to represent runtime libraries (fixes #85)
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/986723002
2015-03-09 11:33:46 -07:00
Sigmund Cherem 0991bea1ef Allow changing a file from a part to a library, and viceversa.
BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/983553002
2015-03-09 10:59:18 -07:00
Vijay Menon 122a190387 Make inference defaults consts for easy tweaking
R=sigmund@google.com

Review URL: https://codereview.chromium.org/988743003
2015-03-06 12:38:23 -08:00
Vijay Menon 448729446b Disable infer-from-overrides by default
See: https://github.com/dart-lang/dev_compiler/issues/86

R=sigmund@google.com

Review URL: https://codereview.chromium.org/980103002
2015-03-05 12:27:39 -08:00
John Messerly 322ab47e1f cleanup: js_codegen now returns a js_ast.Program
For some reason we were emitting a Block and then doing extra work to
avoid emitting the braces. Program handles this already.

R=sigmund@google.com

Review URL: https://codereview.chromium.org/960353003
2015-03-04 16:52:06 -08:00
Vijay Menon 8df5b06aac Fix increment on nullable
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/977153002
2015-03-04 12:56:02 -08:00
John Messerly 6e824067a3 rename ddc -> dev_compiler, fixes #84
R=sigmund@google.com

Review URL: https://codereview.chromium.org/967933005
2015-03-04 11:12:19 -08:00
John Messerly 579a098f9b work around remove deps test failure
mysterious that I'm the only one seeing this :)

R=sigmund@google.com

Review URL: https://codereview.chromium.org/982563003
2015-03-04 10:33:55 -08:00
Vijay Menon f9909f0d07 Flesh out dynamic invocation code
This gets sunflower working with ignore-types.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/961513002
2015-03-04 10:13:21 -08:00
Sigmund Cherem 7dd29efd8f Initial cut for a development server
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/973433003
2015-03-04 09:40:06 -08:00
John Messerly 010ce41dea skip map files in test.sh diff
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/979503002
2015-03-03 14:08:43 -08:00
Vijay Menon 946676554b Make int and double nullable by default
See patch set 1 for the initial step back and patch set 2 to try to get some of this back.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/977613002
2015-03-03 12:08:30 -08:00
Sigmund Cherem f7b7f43d28 Fixing layout in js output (use full paths rather than just the library name)
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/968273002
2015-03-03 09:05:09 -08:00
Sigmund Cherem 17c3dcfca6 Fix test related to sdk move
BUG=

Review URL: https://codereview.chromium.org/970223002
2015-03-03 09:03:44 -08:00
John Messerly 31936cfc98 Merge pull request #83 from dart-lang/sdk
reorganize SDK inputs
2015-03-03 08:24:26 -08:00
John Messerly 77e62cc7fb implement private members, fixes #74
naturally, lots of things to iterate on, but this expresses the key idea (per-library ES6 symbols for privacy).

R=vsm@google.com

Review URL: https://codereview.chromium.org/963343002
2015-03-03 06:44:25 -08:00
John Messerly a3aebf03ed fix dummy setters -- grammar requires an identifier
R=vsm@google.com

Review URL: https://codereview.chromium.org/974703003
2015-03-03 06:42:04 -08:00
John Messerly 807d3b3b22 reorganize SDK inputs
it's all under input_sdk now:
  lib -> the lib folder
  private -> the dart:_* libs
  patch -> the files with @patch

I imagine we'll try and focus changes on the last two
2015-03-02 16:00:53 -08:00
John Messerly b8fcd8cb42 rename as helper to make tools happy
WebStorm ES6 support treats `as` as a keyword. Not sure why, as I don't see it in any ES6 specs, even under "future reserved words".

R=sigmund@google.com

Review URL: https://codereview.chromium.org/971823002
2015-03-02 11:03:31 -08:00
John Messerly 5d52de79e1 implement rethrow
R=sigmund@google.com

Review URL: https://codereview.chromium.org/969783002
2015-03-02 09:49:17 -08:00
John Messerly a260ce7a62 fixes #69, avoid module name inside module scope
R=vsm@google.com

Review URL: https://codereview.chromium.org/967713002
2015-03-02 07:10:55 -08:00
Sigmund Cherem a72f8d67b9 Fix report test
Review URL: https://codereview.chromium.org/965033003
2015-02-27 17:39:03 -08:00
Sigmund Cherem 212bb2af11 Fix reporter
R=vsm@google.com

Review URL: https://codereview.chromium.org/968483002
2015-02-27 15:36:34 -08:00
John Messerly 4d7aa8e397 add source maps support, fixes #50
R=sigmund@google.com

Review URL: https://codereview.chromium.org/965033002
2015-02-27 15:17:19 -08:00
John Messerly bd06d9e7f4 support the JS builtin
* fix a few cases where we regressed js_ast parser interpolations
* infer correct static type for JS call expressions

R=vsm@google.com

Review URL: https://codereview.chromium.org/962083002
2015-02-27 11:28:41 -08:00
Vijay Menon 6859e76565 DDC fixes on DDC
This isn't everything by far, but most issues local to DDC itself that
we mark error right now.  There are a bunch of down casts around
literals and not-quite-generic methods.

R=leafp@google.com

Review URL: https://codereview.chromium.org/963063003
2015-02-27 10:16:14 -08:00
John Messerly 2a5adfe05a fix analysis messages
seen on the latest dev channel editor w/ analysis server

R=sigmund@google.com

Review URL: https://codereview.chromium.org/962213003
2015-02-27 09:06:13 -08:00
John Messerly a3bbe2a291 cleans up sdk patching so we no longer have unresolved names
js_codegen.dart and patch_sdk.dart are the only human-changed files.

This also pulls in dart:isolate, which is depended on from one of the implementation libraries

This also moves dart:_* files back to `lib/_internal/compiler/js_lib/` because there's where libraries.dart points to, and hence Analyzer looks for them there. Alternatively, we could put them somewhere like `tool/input_sdk_internal` and then copy that file into the right path.

R=vsm@google.com

Review URL: https://codereview.chromium.org/955513008
2015-02-26 17:58:13 -08:00
Leaf Petersen 40688929e5 Typecheck map and list literals
We were not checking the elements of list and map literals against the declared type of the literal.

BUG=
R=vsm@google.com

Review URL: https://codereview.chromium.org/957013002
2015-02-26 16:45:15 -08:00
Vijay Menon 50753e3a47 Typecheck constructor initializers properly
R=leafp@google.com

Review URL: https://codereview.chromium.org/959003003
2015-02-26 16:19:27 -08:00
Sigmund Cherem 9369b3e981 Fix new line breaks on }
R=leafp@google.com

Review URL: https://codereview.chromium.org/959073002
2015-02-26 14:32:48 -08:00
Sigmund Cherem 2ffd89471a Disable formatting and add new-lines to make tests faster.
R=vsm@google.com

Review URL: https://codereview.chromium.org/963593002
2015-02-26 13:13:56 -08:00
John Messerly ead4fe2e85 merge class extensions from patch files.
There are a few examples of classes like this:

```dart
@patch
class StringBuffer {
  ... various @patch members ...
  // no @patch here
  void _writeString(str) { ... }
}
```

we need to merge in those members too

R=vsm@google.com

Review URL: https://codereview.chromium.org/955513007
2015-02-26 08:08:21 -08:00
John Messerly 425c3d8359 don't run dart gen on JS patch code
R=vsm@google.com

Review URL: https://codereview.chromium.org/961493003
2015-02-26 08:07:22 -08:00
Sigmund Cherem 9b00a0ecd2 Move argument parsing also to the options.dart file, adds fields for flags we were not storing in the CompilerOptions object.
R=vsm@google.com

Review URL: https://codereview.chromium.org/961503002
2015-02-25 16:40:20 -08:00
John Messerly 89651ccdef cleanup patch generation to preseve comments and remove @patch
the only human authored changes here are tool/patch_sdk.dart

R=vsm@google.com

Review URL: https://codereview.chromium.org/959913003
2015-02-25 13:23:23 -08:00
John Messerly b82e83f383 use js_ast instead of strings to generate JS
fixes https://github.com/dart-lang/dev_compiler/issues/61

R=sigmund@google.com, vsm@google.com

Review URL: https://codereview.chromium.org/949383003
2015-02-25 11:14:19 -08:00
John Messerly 8fac687185 Update README.md
fix name
2015-02-25 07:38:52 -08:00
Sigmund Cherem e57c960817 rename package:ddc to package:dev_compiler
BUG=
R=vsm@google.com

Review URL: https://codereview.chromium.org/954773003
2015-02-24 17:01:15 -08:00
vsmenon 8cb4a6f016 Update codereview.settings 2015-02-24 16:57:57 -08:00
John Messerly 0e46bb35ba fix formatting to include test, exclude lib/src/js
R=sigmund@google.com

Review URL: https://codereview.chromium.org/953093005
2015-02-24 16:56:13 -08:00
Vijay Menon 5c1c9c2381 Add LICENSE and corresponding headers
Fix expectations where line number has changed.

R=dgrove@google.com

Review URL: https://chromereviews.googleplex.com/158257013
2015-02-24 15:02:26 -08:00
Vijay Menon e22ce4ce4c Point to new list and rietveld
BUG=
R=dgrove@google.com

Review URL: https://codereview.chromium.org/943043003
2015-02-24 14:32:38 -08:00
Sigmund Cherem e06c30a76f Fix pubspec to resolve conflict with dart_style analyzer dependency 2015-02-24 10:10:01 -08:00
Sigmund Cherem 6ca4479a85 Undo rename of analyzer now that we are unforked
BUG=

Review URL: https://chromereviews.googleplex.com/158907014
2015-02-24 10:06:47 -08:00