Rename all proposal plugins to -proposal- from -transform- (#6570)

This commit is contained in:
Henry Zhu
2017-10-27 15:26:38 -04:00
committed by GitHub
parent a94aa54230
commit c41abd79a1
599 changed files with 372 additions and 372 deletions

View File

@@ -0,0 +1,6 @@
import { map, takeWhile, forEach } from "iterlib";
getPlayers()
::map(x => x.character())
::takeWhile(x => x.strength > 100)
::forEach(x => console.log(x));

View File

@@ -0,0 +1,29 @@
var operations = [];
var lib = {};
['f', 'g', 'h'].forEach(function (key) {
var func = function () {
return operations.push("lib." + key + "()");
};
Object.defineProperty(lib, key, {
get: function () {
operations.push("get lib." + key);
return func;
}
});
});
({prop:'value'})
::lib.f()
::lib.g()
::lib.h();
assert.deepEqual(operations, [
'get lib.f',
'lib.f()',
'get lib.g',
'lib.g()',
'get lib.h',
'lib.h()'
]);

View File

@@ -0,0 +1,10 @@
var _context;
import { map, takeWhile, forEach } from "iterlib";
(_context = (_context = (_context = getPlayers(), map).call(_context, function (x) {
return x.character();
}), takeWhile).call(_context, function (x) {
return x.strength > 100;
}), forEach).call(_context, function (x) {
return console.log(x);
});