Skip to content

[Transforms] Merge master 08/09 #10263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 276 commits into from
Aug 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
2821d98
Merge branch 'master' into no_ts_extension
Aug 2, 2016
0f134ed
Improve error message
Aug 2, 2016
91c9d76
Remove `SupportedExpressionWithTypeArguments` type; just check that t…
Aug 2, 2016
db44a71
Fix bug
Aug 2, 2016
0eeb9cb
Fix #10083 - allowSyntheticDefaultImports alters getExternalModuleMem…
weswigham Aug 2, 2016
dc19223
Use recursion, and fix error for undefined node
Aug 2, 2016
6814a9f
Rename function
Aug 2, 2016
7908257
Fix lint error
Aug 2, 2016
4189b4d
Narrowing type parameter intersects w/narrowed types
sandersn Aug 2, 2016
359c8b1
Don't allow ".d.ts" extension in an import either.
Aug 3, 2016
204f2c1
Add a helper function `getOrUpdateProperty` to prevent unprotected ac…
Aug 3, 2016
7ab6e11
Limit type guards as assertions to incomplete types in loops
ahejlsberg Aug 3, 2016
917d18a
Accept new baselines
ahejlsberg Aug 3, 2016
12eb57c
Fix linting error
ahejlsberg Aug 3, 2016
8c01efb
Allow JS multiple declarations of ctor properties
sandersn Aug 3, 2016
045b51a
Use {} type facts for unconstrained type params
sandersn Aug 3, 2016
38ee13c
Fix newline lint
sandersn Aug 3, 2016
14f0aa0
Merge pull request #10118 from Microsoft/limitTypeGuardAssertions
ahejlsberg Aug 3, 2016
7205750
Test that declares conflicting method first
sandersn Aug 3, 2016
0a8afc9
Merge pull request #10115 from Microsoft/export_specifiers_map
Aug 4, 2016
10b36ab
[Release-2.0] Fix 9662: Visual Studio 2015 with TS2.0 gives incorrect…
yuit Aug 4, 2016
18fb33d
Remove unused reference files: these tests produce erros so they will…
yuit Aug 4, 2016
e5973b8
Add string-literal completion test for jsdoc
sandersn Aug 4, 2016
4c35296
Merge branch 'master' into jsdoc-string-literal-types
sandersn Aug 4, 2016
3c32478
Support other (new) literal types in jsdoc
sandersn Aug 4, 2016
9947ac2
Don't allow properties inherited from Object to be automatically incl…
Aug 4, 2016
798be6f
Add new test baseline and delete else in binder
sandersn Aug 4, 2016
b54aec1
Merge pull request #10153 from Microsoft/tsx_toString
Aug 5, 2016
8f638f7
Fix lint
sandersn Aug 5, 2016
ceab31c
Port PR #10016 to Master (#10100)
yuit Aug 5, 2016
cabd276
Fix more lint
sandersn Aug 5, 2016
02a79e3
Try using runtests-parallel for CI (#9970)
weswigham Aug 5, 2016
269b828
Fix lssl task (#9967)
weswigham Aug 5, 2016
46f5e5f
Surface noErrorTruncation option
gcnew Aug 5, 2016
37e96b3
Stricter check for discriminant properties in type guards
ahejlsberg Aug 6, 2016
1375505
Add tests
ahejlsberg Aug 6, 2016
cc2dc3a
Emit more efficient/concise "empty" ES6 ctor
chancancode Aug 6, 2016
01f865d
Fix instanceof operator narrowing issues
ahejlsberg Aug 7, 2016
f50226b
Accept new baselines
ahejlsberg Aug 7, 2016
67b3fe5
Add regression test
ahejlsberg Aug 7, 2016
e25db39
Merge branch 'master' into narrowing-a-type-parameter-intersects-conc…
sandersn Aug 8, 2016
2845d2f
Improve naming and documentation from PR
sandersn Aug 8, 2016
5f665ad
Merge pull request #9996 from joshaber/patch-1
sandersn Aug 8, 2016
acfdfe0
Merge pull request #10103 from Microsoft/narrowing-a-type-parameter-i…
sandersn Aug 8, 2016
a0c5608
Update comment
ahejlsberg Aug 8, 2016
ce5a3f4
Add more tests
ahejlsberg Aug 8, 2016
ba521de
Accept new baselines
ahejlsberg Aug 8, 2016
f6a850b
Merge pull request #10188 from Microsoft/discriminantPropertyCheck
ahejlsberg Aug 8, 2016
8ea90ab
Merge pull request #10194 from Microsoft/fixInstanceofNarrowing
ahejlsberg Aug 8, 2016
30e95df
Reduce worker count to 3 (#10210)
weswigham Aug 8, 2016
ce7f554
Speed up fourslash tests
RyanCavanaugh Aug 8, 2016
e724e88
Duh
RyanCavanaugh Aug 8, 2016
53d54c2
Make baselines faster by not writing out unneeded files
RyanCavanaugh Aug 8, 2016
eac7a48
Fix non-strict-compliant test
RyanCavanaugh Aug 8, 2016
3f6aa3f
Fix 10076: Fix Tuple Destructing with "this" (#10208)
yuit Aug 8, 2016
40f0c60
use transpileModule
RyanCavanaugh Aug 8, 2016
5adceb9
Remove use strict
RyanCavanaugh Aug 8, 2016
624e52e
Improve instanceof for structurally identical types
ahejlsberg Aug 8, 2016
5ebfad6
Introduce isTypeInstanceOf function
ahejlsberg Aug 9, 2016
9277b3f
Add test
ahejlsberg Aug 9, 2016
fe1854e
Accept new baselines
ahejlsberg Aug 9, 2016
3f1ec7a
Merge pull request #10216 from Microsoft/structurallyIdenticalInstanceof
ahejlsberg Aug 9, 2016
4f54c6c
Fix loop over array to use for-of instead of for-in
Aug 9, 2016
7e115bb
Use correct this in tuple type parameter constraints
sandersn Aug 9, 2016
d34bbe5
Add explanatory comment to resolveTupleTypeMembers
sandersn Aug 9, 2016
a5ea55a
Ignore null, undefined, void when checking for discriminant property
ahejlsberg Aug 9, 2016
6c0bca0
Add regression test
ahejlsberg Aug 9, 2016
6a8f4cb
Delay tuple type constraint resolution
sandersn Aug 9, 2016
80963ba
Always use thisType when generating tuple id
sandersn Aug 9, 2016
9d4547c
Optimize format of type list id strings used in maps
ahejlsberg Aug 9, 2016
a4e528b
Merge branch 'master' into mergeMaster_08/09
Aug 9, 2016
10ad325
wip - fix error
Aug 9, 2016
8975cd7
Make ReadonlyArray iterable.
joshaber Aug 10, 2016
557fc38
Merge pull request #10235 from Microsoft/fixDiscriminantWithNullableType
ahejlsberg Aug 10, 2016
bc5f41e
Merge pull request #10227 from Microsoft/for_of
Aug 10, 2016
ecc51af
Allow OSX to fail while we investigate (#10255)
weswigham Aug 10, 2016
2f6f74d
Merge pull request #10243 from joshaber/iterable-readonlyarray
RyanCavanaugh Aug 10, 2016
9d42f9c
Fix error from using merging master
Aug 10, 2016
b89d6a2
Merge branch 'mergeMaster_08/09' of https://github.com/microsoft/Type…
Aug 10, 2016
56cb07a
avoid using the global name
Aug 10, 2016
4087808
Fix single-quote lint
sandersn Aug 10, 2016
32fb60b
Update baselines
Aug 10, 2016
68e1079
Fix linting
Aug 10, 2016
e16326d
Merge pull request #10260 from zhengbli/fixSession
zhengbli Aug 10, 2016
65e1293
Optimize performance of maps
ahejlsberg Aug 10, 2016
cba2e1a
Update API sample
ahejlsberg Aug 10, 2016
3ff89f7
Fix processDiagnosticMessages script
ahejlsberg Aug 11, 2016
fa991b5
Have travis take shallow clones of the repo (#10275)
weswigham Aug 11, 2016
5b9bd82
Merge branch 'master' into resolve_entity_name
Aug 11, 2016
688e9bc
Merge pull request #10234 from Microsoft/correct-this-in-tuple-type-p…
sandersn Aug 11, 2016
c9f62f3
Add folds to travis log (#10269)
weswigham Aug 11, 2016
e900952
Merge pull request #10013 from Microsoft/resolve_entity_name
Aug 11, 2016
e00ce94
Merge pull request #10240 from Microsoft/optimizeTypeListIds
ahejlsberg Aug 11, 2016
24d8d84
Optimize filterType to only call getUnionType if necessary
ahejlsberg Aug 11, 2016
9ac13ab
Add shorthand types declaration for travis-fold (#10293)
Aug 11, 2016
a3845a9
Optimize getTypeWithFacts
ahejlsberg Aug 11, 2016
c22a54f
Filter out nullable and primitive types in isDiscriminantProperty
ahejlsberg Aug 11, 2016
b336c69
Fix typo
ahejlsberg Aug 11, 2016
29ae2b2
Add regression tests
ahejlsberg Aug 11, 2016
644d655
Optimize core filter function to only allocate when necessary
ahejlsberg Aug 11, 2016
f1ea145
Address CR comments + more optimizations
ahejlsberg Aug 11, 2016
e64675e
Faster path for creating union types from filterType
ahejlsberg Aug 12, 2016
df739fd
Allow an @types direcotry to have a package.json which specifies `"ty…
Aug 11, 2016
b988bc9
Merge pull request #10303 from Microsoft/not_needed_types
Aug 12, 2016
19d89c4
Merge pull request #10296 from Microsoft/fixDiscriminantWithPrimtive
ahejlsberg Aug 12, 2016
87393e0
Merge branch 'master' into optimizeMaps
ahejlsberg Aug 12, 2016
ec49525
Merge pull request #10211 from RyanCavanaugh/fourslashTestPerf
RyanCavanaugh Aug 12, 2016
b0a4e27
Lint
RyanCavanaugh Aug 12, 2016
d206046
Collect timing information for commands running on travis (#10308)
weswigham Aug 12, 2016
c816244
Simplifies performance API
rbuckton Aug 12, 2016
5bdde3b
Merge pull request #10270 from Microsoft/optimizeMaps
ahejlsberg Aug 13, 2016
73d53e8
Use 'MapLike' instead of 'Map' in 'preferConstRule.ts'.
DanielRosenwasser Aug 13, 2016
10d1e02
Merge pull request #10323 from Microsoft/fixLint
DanielRosenwasser Aug 13, 2016
3835302
narrow from 'any' in most situations
yortus Aug 13, 2016
59c09d9
Update instanceof conformance tests
yortus Aug 13, 2016
cc8f326
accept new baselines
yortus Aug 14, 2016
66047c8
add tests
yortus Aug 14, 2016
837688f
accept new baselines
yortus Aug 14, 2016
78cea2a
Merge pull request #10334 from yortus/narrow-from-any
DanielRosenwasser Aug 15, 2016
3de8c22
Merge branch 'master' into no_ts_extension
Aug 15, 2016
54735ed
Use lowercase names for type reference directives
Aug 15, 2016
592805f
Use proper response codes in web tests
Aug 15, 2016
a1eda3c
Merge pull request #10341 from Microsoft/runtests_browser_response_code
Aug 15, 2016
ccf5bab
Treat ambient shorthand declarations as explicit uses of the `any` type
Aug 15, 2016
2eb159e
Rename 'find' functions
Aug 15, 2016
a1dad91
Parallel linting (#10313)
weswigham Aug 15, 2016
2d1b68f
Fix the style fix (#10344)
weswigham Aug 15, 2016
4e04b75
Aligned mark names with values used by ts-perf.
rbuckton Aug 15, 2016
75cb595
Merge pull request #10327 from Microsoft/simplePerformanceAPI
rbuckton Aug 15, 2016
2953c7f
Use an enum in checkClassForDuplicateDeclarations to aid readability
Aug 15, 2016
8f1960f
Rename to Accessor
Aug 15, 2016
7ee05ba
Merge pull request #10345 from Microsoft/meaning
Aug 15, 2016
7f0a02f
Migrated more MapLikes to Maps
rbuckton Aug 15, 2016
9c83243
Add ES2015 Date constructor signature that accepts another Date (#10353)
yuit Aug 15, 2016
8f847c5
Parameters with no assignments implicitly considered const
ahejlsberg Aug 15, 2016
15dae3f
Add tests
ahejlsberg Aug 15, 2016
f3c085e
Merge branch 'master' into classPropertyInference
sandersn Aug 15, 2016
11f27e8
Merge pull request #10062 from YuichiNukiyama/fix9601
RyanCavanaugh Aug 15, 2016
80c04f8
Merge pull request #10358 from Microsoft/classPropertyInference
sandersn Aug 15, 2016
1dc495a
Migrate additional MapLikes to Maps.
rbuckton Aug 15, 2016
f7f5007
Fix 10625: JSX Not validating when index signature is present (#10352)
yuit Aug 16, 2016
5770157
Adding more comments
ahejlsberg Aug 16, 2016
889e5ac
Clean up/move some Map helper functions.
rbuckton Aug 16, 2016
c014655
Revert some formatting changes.
rbuckton Aug 16, 2016
ce5e207
Improve ReadonlyArray<T>.concat to match Array<T>
sandersn Aug 16, 2016
dcf3946
Fix link to blog
Aug 16, 2016
a697447
Remove old assertion about when we're allowed to use fileExists
Aug 16, 2016
a66b38a
Set isNewIdentifierLocation to true for JavaScript files
jramsay Aug 16, 2016
a36e155
Update error message for conflicting type definitions
RyanCavanaugh Aug 16, 2016
2a62917
Merge pull request #10377 from RyanCavanaugh/fix10370
RyanCavanaugh Aug 16, 2016
9cc8b2e
Merge pull request #10189 from chancancode/constructor-splat-arguments
DanielRosenwasser Aug 16, 2016
01aaff7
Merge pull request #10009 from Microsoft/null-undefined-allowed-as-in…
sandersn Aug 16, 2016
905957d
Merge pull request #10357 from Microsoft/implicitConstParameters
ahejlsberg Aug 16, 2016
02f908a
Merge branch 'master' into noImplicitAnyDestructuring
sheetalkamat Aug 16, 2016
c4d1f15
Merge pull request #10375 from Microsoft/fix_blog_link
mhegazy Aug 17, 2016
11c5c4e
Merge pull request #10359 from Microsoft/optimizeMoreMaps
rbuckton Aug 17, 2016
ef4fefc
Merge pull request #10340 from Microsoft/lower_case_types
Aug 17, 2016
c9d1f0d
Merge pull request #10376 from Microsoft/remove_file_exists_assertion
Aug 17, 2016
c42f1cb
Explain why we lower-case type reference directives
Aug 17, 2016
0006371
Merge pull request #10374 from Microsoft/readonly-array-type-argument…
sandersn Aug 17, 2016
96840c3
Merge branch 'master' into allow-js-multiple-declaration-of-construct…
sandersn Aug 17, 2016
c218d37
Merge pull request #9995 from Microsoft/jsdoc-string-literal-types
sandersn Aug 17, 2016
09bc2e6
Merge pull request #10387 from Microsoft/comment_process_type_referen…
mhegazy Aug 17, 2016
07a8f31
Correctly merge bindThisPropertyAssignment
sandersn Aug 17, 2016
c73efe2
Fix comment
sandersn Aug 17, 2016
9769718
Merge pull request #10123 from Microsoft/allow-js-multiple-declaratio…
sandersn Aug 17, 2016
271ffc8
Merge branch 'master' into instantiate-this-for-contextually-typed-ty…
sandersn Aug 17, 2016
bf63811
Merge pull request #10213 from RyanCavanaugh/baselinePerf
RyanCavanaugh Aug 17, 2016
2d1639f
Property handle imcomplete control flow types in nested loops
ahejlsberg Aug 17, 2016
44476f1
Update due to CR suggestion
jramsay Aug 17, 2016
b93cdec
Add regression test
ahejlsberg Aug 17, 2016
ef2d6ab
Merge pull request #10342 from Microsoft/ambient_shorthand_is_explici…
mhegazy Aug 17, 2016
7a9f8c8
Merge pull request #10391 from Microsoft/SetIsNewIdentifierLocationTo…
jramsay Aug 17, 2016
4880e7e
Merge pull request #10396 from Microsoft/fixNestedLoopTypeGuards
ahejlsberg Aug 17, 2016
0f483d6
Assign and instantiate contextual this type if not present
sandersn Aug 17, 2016
5843bbb
Merge branch 'noErrorTruncation' of https://github.com/gcnew/TypeScri…
mhegazy Aug 17, 2016
73a6488
Merge branch 'gcnew-noErrorTruncation'
mhegazy Aug 17, 2016
da8fc5d
Fix 10289: correctly generate tsconfig.json with --lib (#10355)
yuit Aug 17, 2016
aa834d7
JSDoc supports null, undefined and never types
sandersn Aug 17, 2016
164beb3
Update baselines in jsDocParsing unit tests
sandersn Aug 17, 2016
73a857b
Restored comments to explain spreading 'arguments' into calls to 'sup…
DanielRosenwasser Aug 18, 2016
111b7c5
Added test.
DanielRosenwasser Aug 18, 2016
c1e70c9
Use the non-nullable type of the contextual type for object completions.
DanielRosenwasser Aug 18, 2016
d24afc2
Return non-JsDocComment children
zhengbli Aug 18, 2016
2e57220
Add more tests for `export = foo.bar`.
Aug 18, 2016
67b6c56
Output test baselines to tests/baselines/local instead of root
Aug 18, 2016
4e40b75
Merge pull request #10413 from Microsoft/export_equals_property_test
Aug 18, 2016
f57b0fb
Merge pull request #10415 from Microsoft/baseline_local_path
RyanCavanaugh Aug 18, 2016
6facbf1
Merge pull request #10403 from Microsoft/completionsForNullableObjects
DanielRosenwasser Aug 18, 2016
d830034
Merge pull request #10404 from Microsoft/addCommentForEmptyCtorEmit
DanielRosenwasser Aug 18, 2016
8fc17af
Move supportedTypescriptExtensionsWithDtsFirst next to supportedTypeS…
Aug 18, 2016
952d2fe
Fix comment
Aug 18, 2016
b8963ba
Fix RWC Runner (#10420)
yuit Aug 18, 2016
a621c09
Merge pull request #8241 from Microsoft/noImplicitAnyDestructuring
mhegazy Aug 18, 2016
03dcdda
Treat special property access symbol differently
Aug 19, 2016
297cb50
Merge branch 'master' into no_ts_extension
Aug 19, 2016
b452469
Fix tests
Aug 19, 2016
b482fa5
Merge branch 'master' into cast_of_await
Aug 19, 2016
19cde06
Merge pull request #9890 from Microsoft/cast_of_await
Aug 19, 2016
d2d5d42
Merge pull request #9646 from Microsoft/no_ts_extension
Aug 19, 2016
7f6e36c
Update shim version to be 2.1 (#10424)
yuit Aug 19, 2016
0168ab2
Check return code paths on getters (#10102)
weswigham Aug 19, 2016
da6d951
Remove extraneous arguments from harness's runBaseline (#10419)
weswigham Aug 19, 2016
6c60e5b
Remove needless call to basename
RyanCavanaugh Aug 19, 2016
def29f6
Merge pull request #10439 from RyanCavanaugh/fixJakeBaselineAccept
RyanCavanaugh Aug 19, 2016
8ad2744
Refactor baseliners out of compiler runner (#10440)
weswigham Aug 19, 2016
057357b
CR feedback
Aug 19, 2016
a5bb13f
fix broken tests
Aug 19, 2016
a531b87
Pass in baselineOpts into types baselines so that RWC baselines can b…
yuit Aug 20, 2016
d8ab098
Merge pull request #10426 from zhengbli/9518
zhengbli Aug 20, 2016
806e142
Add error message
YuichiNukiyama Aug 20, 2016
37a9e6a
fix linting error
YuichiNukiyama Aug 20, 2016
0c01874
follow advise
YuichiNukiyama Aug 20, 2016
bc0c137
remove extra code
YuichiNukiyama Aug 20, 2016
eeec775
Add more test for 10426
zhengbli Aug 21, 2016
dc7b18e
fix some errors
YuichiNukiyama Aug 21, 2016
794d3e9
routine update of dom libs
zhengbli Aug 21, 2016
66f6f9b
Merge pull request #10458 from zhengbli/betterTestForModuleExportDOc
zhengbli Aug 21, 2016
e445e01
Add test for jsdoc syntactic classification for function declaration
zhengbli Aug 21, 2016
6d2323b
Simplify implementation
zhengbli Aug 21, 2016
84386f9
Tolerate certain errors in tsconfig.json
zhengbli Aug 21, 2016
b207417
Add test for configFile error tolerance
zhengbli Aug 21, 2016
a8ab52f
Use TS parser to tolerate more errors in tsconfig.json
zhengbli Aug 21, 2016
582d8b8
Implement tuple types as type references to synthesized generic types
ahejlsberg Aug 21, 2016
7d82c22
Add comments + minor changes
ahejlsberg Aug 21, 2016
2e8d11e
Accept new baselines
ahejlsberg Aug 22, 2016
05fef61
Add .types extension
Aug 22, 2016
4e56fc0
Properly guard for undefined in getTypeReferenceArity
ahejlsberg Aug 22, 2016
2c814f4
Add jsdoc nullable union test case to fourslash
sandersn Aug 22, 2016
bb6c6fd
Merge pull request #10478 from Microsoft/fixtypesRWC
mhegazy Aug 22, 2016
2013058
Fix class/interface merging issue + lint error
ahejlsberg Aug 22, 2016
92eb8df
Allow "typings" in a package.json to be missing its extension (but al…
Aug 22, 2016
ec1f6b1
Merge pull request #10480 from Microsoft/typings_extension_is_optional
Aug 22, 2016
a013759
Merge pull request #10399 from Microsoft/jsdoc-never-undefined-null-t…
sandersn Aug 22, 2016
5aafc2c
Contextually type this in getDeclFromSig, not checkThisExpr
sandersn Aug 22, 2016
4a58e68
Update parser comment with es7 grammar (#10459)
yuit Aug 22, 2016
3fb0840
Merge pull request #10466 from Microsoft/tupleTypeReferences
ahejlsberg Aug 22, 2016
6f722b0
Merge pull request #10441 from zhengbli/routineUpdate819
zhengbli Aug 22, 2016
d133b0e
Merge pull request #10407 from zhengbli/fixJsDocSyntacticClassification
mhegazy Aug 22, 2016
edbeab0
Merge pull request #10418 from zhengbli/tolerateConfigError
zhengbli Aug 22, 2016
046b55e
allowSyntheticDefaultImports resolves to modules instead of variables
sandersn Aug 22, 2016
fc1d6a8
Rename getContextuallyTypedThisParameter to getContextualThisParameter
sandersn Aug 22, 2016
36130ff
Fix 10472: Invalid emitted code for await expression (#10483)
yuit Aug 22, 2016
f028fa3
Merge pull request #9746 from Microsoft/instantiate-this-for-contextu…
sandersn Aug 22, 2016
93de502
Merge pull request #10486 from Microsoft/allowSyntheticDefaultImports…
sandersn Aug 22, 2016
590755b
change error message
YuichiNukiyama Aug 23, 2016
ddb5a00
Merge pull request #10446 from YuichiNukiyama/fix10351
sandersn Aug 23, 2016
fc9f883
Merge branch 'master' into mergeMaster_08/09
Aug 25, 2016
371602c
Fix broken build from merging with master
Aug 25, 2016
422097e
Fix linting error
Aug 26, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ node_js:

sudo: false

env:
- workerCount=3

matrix:
fast_finish: true
include:
- os: osx
node_js: stable
osx_image: xcode7.3
env: workerCount=2
allow_failures:
- os: osx

branches:
only:
Expand All @@ -28,3 +34,6 @@ install:
cache:
directories:
- node_modules

git:
depth: 1
221 changes: 124 additions & 97 deletions Gulpfile.ts

Large diffs are not rendered by default.

498 changes: 268 additions & 230 deletions Jakefile.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

[![Join the chat at https://gitter.im/Microsoft/TypeScript](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Microsoft/TypeScript?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[TypeScript](http://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types, classes, and modules to JavaScript. TypeScript supports tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](http://www.typescriptlang.org/Playground), and stay up to date via [our blog](http://blogs.msdn.com/typescript) and [Twitter account](https://twitter.com/typescriptlang).
[TypeScript](http://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types, classes, and modules to JavaScript. TypeScript supports tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](http://www.typescriptlang.org/Playground), and stay up to date via [our blog](https://blogs.msdn.microsoft.com/typescript) and [Twitter account](https://twitter.com/typescriptlang).

## Installing

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
},
"devDependencies": {
"@types/browserify": "latest",
"@types/convert-source-map": "latest",
"@types/chai": "latest",
"@types/convert-source-map": "latest",
"@types/del": "latest",
"@types/glob": "latest",
"@types/gulp": "latest",
Expand Down Expand Up @@ -69,17 +69,19 @@
"mkdirp": "latest",
"mocha": "latest",
"mocha-fivemat-progress-reporter": "latest",
"q": "latest",
"run-sequence": "latest",
"sorcery": "latest",
"through2": "latest",
"travis-fold": "latest",
"ts-node": "latest",
"tsd": "latest",
"tslint": "next",
"typescript": "next"
},
"scripts": {
"pretest": "jake tests",
"test": "jake runtests",
"test": "jake runtests-parallel",
"build": "npm run build:compiler && npm run build:tests",
"build:compiler": "jake local",
"build:tests": "jake tests",
Expand Down
2 changes: 1 addition & 1 deletion scripts/ior.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="../src/harness/external/node.d.ts" />
/// <reference types="node"/>

import fs = require('fs');
import path = require('path');
Expand Down
45 changes: 45 additions & 0 deletions scripts/parallel-lint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
var Linter = require("tslint");
var fs = require("fs");

function getLinterOptions() {
return {
configuration: require("../tslint.json"),
formatter: "prose",
formattersDirectory: undefined,
rulesDirectory: "built/local/tslint"
};
}

function lintFileContents(options, path, contents) {
var ll = new Linter(path, contents, options);
return ll.lint();
}

function lintFileAsync(options, path, cb) {
fs.readFile(path, "utf8", function (err, contents) {
if (err) {
return cb(err);
}
var result = lintFileContents(options, path, contents);
cb(undefined, result);
});
}

process.on("message", function (data) {
switch (data.kind) {
case "file":
var target = data.name;
var lintOptions = getLinterOptions();
lintFileAsync(lintOptions, target, function (err, result) {
if (err) {
process.send({ kind: "error", error: err.toString() });
return;
}
process.send({ kind: "result", failures: result.failureCount, output: result.output });
});
break;
case "close":
process.exit(0);
break;
}
});
2 changes: 1 addition & 1 deletion scripts/processDiagnosticMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function checkForUniqueCodes(messages: string[], diagnosticTable: InputDiagnosti
}

function buildUniqueNameMap(names: string[]): ts.Map<string> {
var nameMap: ts.Map<string> = {};
var nameMap = ts.createMap<string>();

var uniqueNames = NameGenerator.ensureUniqueness(names, /* isCaseSensitive */ false, /* isFixed */ undefined);

Expand Down
13 changes: 6 additions & 7 deletions scripts/tslint/preferConstRule.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as Lint from "tslint/lib/lint";
import * as ts from "typescript";


export class Rule extends Lint.Rules.AbstractRule {
public static FAILURE_STRING_FACTORY = (identifier: string) => `Identifier '${identifier}' never appears on the LHS of an assignment - use const instead of let for its declaration.`;

Expand Down Expand Up @@ -64,7 +63,7 @@ interface DeclarationUsages {
}

class PreferConstWalker extends Lint.RuleWalker {
private inScopeLetDeclarations: ts.Map<DeclarationUsages>[] = [];
private inScopeLetDeclarations: ts.MapLike<DeclarationUsages>[] = [];
private errors: Lint.RuleFailure[] = [];
private markAssignment(identifier: ts.Identifier) {
const name = identifier.text;
Expand Down Expand Up @@ -172,7 +171,7 @@ class PreferConstWalker extends Lint.RuleWalker {
}

private visitAnyForStatement(node: ts.ForOfStatement | ts.ForInStatement) {
const names: ts.Map<DeclarationUsages> = {};
const names: ts.MapLike<DeclarationUsages> = {};
if (isLet(node.initializer)) {
if (node.initializer.kind === ts.SyntaxKind.VariableDeclarationList) {
this.collectLetIdentifiers(node.initializer as ts.VariableDeclarationList, names);
Expand All @@ -194,7 +193,7 @@ class PreferConstWalker extends Lint.RuleWalker {
}

visitBlock(node: ts.Block) {
const names: ts.Map<DeclarationUsages> = {};
const names: ts.MapLike<DeclarationUsages> = {};
for (const statement of node.statements) {
if (statement.kind === ts.SyntaxKind.VariableStatement) {
this.collectLetIdentifiers((statement as ts.VariableStatement).declarationList, names);
Expand All @@ -205,15 +204,15 @@ class PreferConstWalker extends Lint.RuleWalker {
this.popDeclarations();
}

private collectLetIdentifiers(list: ts.VariableDeclarationList, ret: ts.Map<DeclarationUsages>) {
private collectLetIdentifiers(list: ts.VariableDeclarationList, ret: ts.MapLike<DeclarationUsages>) {
for (const node of list.declarations) {
if (isLet(node) && !isExported(node)) {
this.collectNameIdentifiers(node, node.name, ret);
}
}
}

private collectNameIdentifiers(declaration: ts.VariableDeclaration, node: ts.Identifier | ts.BindingPattern, table: ts.Map<DeclarationUsages>) {
private collectNameIdentifiers(declaration: ts.VariableDeclaration, node: ts.Identifier | ts.BindingPattern, table: ts.MapLike<DeclarationUsages>) {
if (node.kind === ts.SyntaxKind.Identifier) {
table[(node as ts.Identifier).text] = { declaration, usages: 0 };
}
Expand All @@ -222,7 +221,7 @@ class PreferConstWalker extends Lint.RuleWalker {
}
}

private collectBindingPatternIdentifiers(value: ts.VariableDeclaration, pattern: ts.BindingPattern, table: ts.Map<DeclarationUsages>) {
private collectBindingPatternIdentifiers(value: ts.VariableDeclaration, pattern: ts.BindingPattern, table: ts.MapLike<DeclarationUsages>) {
for (const element of pattern.elements) {
this.collectNameIdentifiers(value, element.name, table);
}
Expand Down
3 changes: 2 additions & 1 deletion scripts/types/ambient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ declare module "gulp-insert" {
export function append(text: string | Buffer): NodeJS.ReadWriteStream;
export function prepend(text: string | Buffer): NodeJS.ReadWriteStream;
export function wrap(text: string | Buffer, tail: string | Buffer): NodeJS.ReadWriteStream;
export function transform(cb: (contents: string, file: {path: string}) => string): NodeJS.ReadWriteStream; // file is a vinyl file
export function transform(cb: (contents: string, file: {path: string, relative: string}) => string): NodeJS.ReadWriteStream; // file is a vinyl file
}

declare module "into-stream" {
Expand All @@ -22,3 +22,4 @@ declare module "into-stream" {
}

declare module "sorcery";
declare module "travis-fold";
Loading