pulumi/sdk/nodejs/tsconfig.json
joeduffy 3427647f93 Implement free variable calculations
This change implements free variable calculations and wires it up
to closure serialization.  This is recursive, in the sense that
the serializer may need to call back to fetch free variables for
nested functions encountered during serialization.

The free variable calculation works by parsing the serialized
function text and walking the AST, applying the usual scoping rules
to determine what is free.  In particular, it respects nested
function boundaries, and rules around var, let, and const scoping.

We are using Acorn to perform the parsing.  I'd originally gone
down the path of using V8, so that we have one consistent parser
in the game, however unfortunately neither V8's parser nor its AST
is a stable API meant for 3rd parties.  Unlike the exising internal
V8 dependencies, this one got very deep very quickly, and I became
nervous about maintaining all those dependencies.  Furthermore,
by doing it this way, we can write the free variable logic in
JavaScript, which means one fewer C++ component to maintain.

This also includes a fairly significant amount of testing, all
of which passes! 🎉
2017-09-04 11:35:21 -07:00

44 lines
1.1 KiB
JSON

{
"compilerOptions": {
"outDir": "bin",
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"sourceMap": true,
"stripInternal": true,
"experimentalDecorators": true,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true,
"strictNullChecks": true
},
"files": [
"index.ts",
"config.ts",
"property.ts",
"resource.ts",
"asset/index.ts",
"asset/asset.ts",
"asset/archive.ts",
"runtime/index.ts",
"runtime/closure.ts",
"runtime/config.ts",
"runtime/monitor.ts",
"runtime/resource.ts",
"runtime/langhost.ts",
"cmd/langhost/index.ts",
"cmd/langhost/run.ts",
"tests/config.spec.ts",
"tests/init.spec.ts",
"tests/util.ts",
"tests/runtime/closure.spec.ts",
"tests/runtime/langhost/run.spec.ts"
]
}