KT-12877: serialize information about file annotations. For each top-level declaration store containing file. Use this information to properly handle file-targeted JsModule.

This commit is contained in:
Alexey Andreev
2016-06-28 17:49:17 +03:00
committed by Alexey Andreev
parent 6df40559f0
commit ac703dfda6
35 changed files with 2087 additions and 165 deletions
@@ -0,0 +1,34 @@
define("lib", [], function() {
function A(x) {
this.x = x;
}
A.prototype.foo = function (y) {
return this.x + y;
};
B = {
x: 123,
foo: function(y) {
return this.x + y;
}
};
function foo(y) {
return 323 + y;
}
var bar = 423;
return {
A: A,
B: B,
foo: foo,
bar: bar
};
});
C = {
f: function() {
return 12345;
}
};