Cyrus Najmabadi
25aed1129c
Unify more classification code.
2015-04-30 17:50:39 -07:00
Cyrus Najmabadi
089fd4dd8f
Add a common, dense, format for classification operations to lower cost of processing on the host side.
...
We now just return an array of triples to represent classified results. The triple contains:
1) the start of the classification.
2) the length of the classification.
3) the type of the clasification.
We also encode this into a comma separated string when passing over to the managed side
(as opposed to an JSON array). That way we don't pay such a high JSON parsing cost.
Instead, we can just do a string.split(",") on the encoded triples and process each
element ourselves.
2015-04-30 17:50:27 -07:00
Cyrus Najmabadi
c35f348cd8
Faster getClassifications
2015-04-30 17:50:11 -07:00
Daniel Rosenwasser
c233073d02
Update LKG.
v1.5.0-beta
2015-04-27 13:16:43 -07:00
Daniel Rosenwasser
73e91aa10d
Merge pull request #2880 from Microsoft/sourceMapWithComments-attempt2
...
Take comments into account when tracking sourcemap spans
2015-04-23 18:05:11 -07:00
Daniel Rosenwasser
f82c593fac
Added test.
2015-04-23 17:22:04 -07:00
Daniel Rosenwasser
c68e7e9ad2
Accepted baselines.
2015-04-23 17:22:02 -07:00
Daniel Rosenwasser
b7c4d0a28e
Fixed checks to use isReservedNameInStrictMode.
2015-04-23 17:21:59 -07:00
Daniel Rosenwasser
ddeb8bcafc
Added test.
2015-04-23 17:21:57 -07:00
Daniel Rosenwasser
cc32e2397f
Merge branch 'release-1.5' into sourceMapWithComments-attempt2
2015-04-23 17:07:18 -07:00
Ron Buckton
2bd4d7744b
Fixes his in decorator helpers
2015-04-23 16:18:30 -07:00
Ron Buckton
e08e1f145b
Added tests for 1.0 lib and missing decorator type
2015-04-23 16:18:20 -07:00
Ron Buckton
a5eb68bcbb
Lazy resolution of global decorator types
2015-04-23 16:18:05 -07:00
Daniel Rosenwasser
2d09dcc16f
Corrected call.
2015-04-23 15:52:18 -07:00
Mohamed Hegazy
70241fdca8
Update LKG
2015-04-23 14:12:53 -07:00
Mohamed Hegazy
c9dd6592f8
Update toolsVersion
2015-04-23 14:12:04 -07:00
Daniel Rosenwasser
8406c15868
Use 'emitVerbatimDeclarationName' instead of using a default flag in emitBareNode.
2015-04-23 14:00:21 -07:00
Daniel Rosenwasser
f1e65c64b0
emitJavaScriptWorker -> emitBareNode; emitNodeWithoutSourceMap -> emitWithoutSourceMap
2015-04-23 13:32:40 -07:00
Daniel Rosenwasser
689f383145
Added comments for 'emitNodeWorker'.
2015-04-22 17:31:55 -07:00
Daniel Rosenwasser
5ae26e10bd
Moved function used in declaration emitter to the declaration emitter to break dependency loop.
2015-04-22 17:11:24 -07:00
Daniel Rosenwasser
d5203b9699
Removed vestigial code.
2015-04-22 17:09:44 -07:00
Daniel Rosenwasser
5502e2bbe5
Comment the new core functions.
2015-04-22 17:05:39 -07:00
Daniel Rosenwasser
01deef4d48
emitSourceMap -> shouldEmitSourceMap
2015-04-22 16:42:45 -07:00
Daniel Rosenwasser
7d2901b4ae
Accepted baselines.
2015-04-22 16:05:15 -07:00
Daniel Rosenwasser
f7273ca4b2
Emit comments for function declarations in a more uniform way.
2015-04-22 16:02:49 -07:00
Ron Buckton
f7d29018ba
Updated LKG
2015-04-21 16:45:48 -07:00
Ron Buckton
706b5a100b
Updated emit for __decorator and __metadata helpers
2015-04-21 16:34:14 -07:00
Daniel Rosenwasser
d716a5a0bc
emitDeclarationName -> emitNameOfDeclaration
2015-04-21 16:33:59 -07:00
Daniel Rosenwasser
3ec9e3b198
Accepted baselines.
2015-04-21 16:31:24 -07:00
Daniel Rosenwasser
bea5957d3e
Cleaned up flow of binder, fixed ordering for comments/sourcemap tracking.
2015-04-21 16:15:24 -07:00
Daniel Rosenwasser
989968013e
Added tests from original issue.
2015-04-21 16:15:04 -07:00
Mohamed Hegazy
f1392ad527
Update LKG
2015-04-20 16:44:39 -07:00
Mohamed Hegazy
7aee43b6da
Merge branch 'master' into release-1.5
2015-04-20 15:48:15 -07:00
Mohamed Hegazy
7f8e21b9b8
Merge pull request #2772 from Microsoft/rootDir
...
Add new compiler option --rootDir
2015-04-20 14:42:01 -07:00
Mohamed Hegazy
ed2e105f17
Merge branch 'master' into rootDir
2015-04-20 14:23:40 -07:00
Mohamed Hegazy
08a869212b
Respond to code review commmetns
2015-04-20 14:23:24 -07:00
Jason Freeman
02a480d85d
Merge pull request #2824 from Microsoft/combineTypeMappers
...
Fix combineTypeMappers to use instantiateType
2015-04-20 12:53:05 -07:00
Mohamed Hegazy
021f309151
Merge branch 'master' into rootDir
2015-04-19 13:25:03 -07:00
Mohamed Hegazy
b3fcae88b9
Fix typo
2015-04-19 13:24:39 -07:00
Mohamed Hegazy
17a8024eb7
Update LKG
2015-04-19 12:47:45 -07:00
Mohamed Hegazy
2049684154
Update version
2015-04-19 12:46:38 -07:00
Mohamed Hegazy
3013aba309
Merge branch 'master' into release-1.5
...
Conflicts:
bin/tsc.js
bin/typescript.js
bin/typescriptServices.js
src/compiler/program.ts
2015-04-19 12:44:53 -07:00
Dirk Bäumer
62b15de666
Merge pull request #2687 from dbaeumer/feature/fix2507
...
fixes #2507 - bad formatting for formatonkey if convertTabsToSpaces === false
2015-04-19 21:43:51 +02:00
Zhengbo Li
fcc5ac02ad
Merge pull request #2827 from zhengbli/master
...
Fix dom type "ArrayBufferView"
2015-04-18 12:47:24 -07:00
Daniel Rosenwasser
79dc0f96d3
Merge pull request #1546 from Arnavion/fix-emithost-this-binding
...
Don't lose the this reference for compilerHost methods.
2015-04-18 11:29:44 -07:00
Zhengbo Li
609be7628b
Fix dom type "ArrayBufferView"
...
The dom type "ArrayBufferView" was emitteed as "any" because of a script
bug.
2015-04-18 00:12:27 -07:00
Jason Freeman
31b5e72ed4
Accept symbol baseline
2015-04-17 18:36:44 -07:00
Jason Freeman
ccf4104779
Change TypeMapper to only take a type parameter, and fix combineTypeMappers to comply with that rule
2015-04-17 18:28:38 -07:00
Mohamed Hegazy
b8ebf561f9
Update LKG
2015-04-17 17:21:02 -07:00
Daniel Rosenwasser
62036758a8
Merge pull request #2809 from Microsoft/noReservedWordsInBindingPatterns
...
Disallow reserved words for object binding pattern names
2015-04-17 17:06:50 -07:00