Vijay Menon
|
e6b1853c40
|
Flesh out more codegen
R=jmesserly@google.com
Review URL: https://chromereviews.googleplex.com/126787013
|
2014-12-02 09:02:17 -08:00 |
|
Sigmund Cherem
|
d2a729cd68
|
Run resolver on every library, as we walk through them
R=vsm@google.com
Review URL: https://chromereviews.googleplex.com/115197015
|
2014-11-25 12:54:37 -08:00 |
|
Sigmund Cherem
|
971e551b6d
|
Use analyzer as a library, enable mock sdks, refactor to start testing
R=vsm@google.com
Review URL: https://chromereviews.googleplex.com/118577013
|
2014-11-21 14:24:06 -08:00 |
|
Sigmund Cherem
|
4c67c961ff
|
All minor nits: split some files up, fix comments in walker to remove references
to spec, make them more darty, run formatter on the rest of the files
R=vsm@google.com
Review URL: https://chromereviews.googleplex.com/117397013
|
2014-11-20 15:36:20 -08:00 |
|
Sigmund Cherem
|
560aa1f632
|
Fix span location to skip comments
R=vsm@google.com
Review URL: https://chromereviews.googleplex.com/120837013
|
2014-11-20 13:00:08 -08:00 |
|
Vijay Menon
|
8522221df4
|
Initial codegen skeleton
Invoke with:
> dart bin/checker.dart -o out tests/fieldtest.dart
Run with (node.js installed):
> node runtime/run.js runtime/dart_runtime.js runtime/dart_core.js out/fieldtest/fieldtest.dart.js fieldtest
Here's the output of fieldtest.dart.js:
var fieldtest;
(function (fieldtest) {
// Class A
var A = (function () {
var _initializer = (function (_this) {
_this.x = 42;
});
function A() {
_initializer(this);
}
return A;
})();
fieldtest.A = A;
// Function foo: (A) → void
function foo(a) {
dart_core.print(a.x);
}
fieldtest.foo = foo;
// Function bar: (dynamic) → void
function bar(a) {
dart_core.print(dart_runtime.dload(a, "x"));
}
fieldtest.bar = bar;
// Function main: () → void
function main() {
var a = new A();
fieldtest.foo(a);
fieldtest.bar(a);
}
fieldtest.main = main;
})(fieldtest || (fieldtest = {}));
R=sigmund@google.com
Review URL: https://chromereviews.googleplex.com/119897013
|
2014-11-20 12:15:55 -08:00 |
|
Vijay Menon
|
c298d19d4b
|
Add flag to check sdk code
R=sigmund@google.com
Review URL: https://chromereviews.googleplex.com/119797013
|
2014-11-18 09:20:32 -08:00 |
|
Sigmund Cherem
|
411efe695c
|
Use source spans for error messages. This will print error messages in red and
highlight the area of the original source that had the error.
R=vsm@google.com
Review URL: https://chromereviews.googleplex.com/122637013
|
2014-11-17 17:58:13 -08:00 |
|
Vijay Menon
|
3f27060ad6
|
Initial checker
|
2014-11-17 08:50:19 -08:00 |
|