Wesley Wigham
e12f2d8232
Add assertion whitespace lint rule ( #9931 )
...
* Add assertion whitespace lint rule
* Fix typo
* Add the word `Rule` to Jakefile
2016-07-26 13:29:53 -07:00
Andy Hanson
0e0220d786
Support emitting static properties for classes with no name
2016-07-26 13:28:04 -07:00
Nathan Shively-Sanders
670f0c91b3
Merge pull request #9956 from Microsoft/bind-window-performance-now
...
In ts.performance.now, bind window.performance.now
2016-07-26 11:31:54 -07:00
Wesley Wigham
acb003adce
Add lint enforcing line endings ( #9942 )
2016-07-26 10:28:49 -07:00
Nathan Shively-Sanders
1b1560861c
In ts.performance.now, bind window.performance.now
...
Using an arrow function. Previously, it was set directly to
window.performance.now, which fails when used on Chrome.
2016-07-26 10:13:30 -07:00
Jakub Młokosiewicz
34744802bc
Fix typo in comment for MAX_SAFE_INTEGER
2016-07-26 14:58:16 +02:00
Nathan Shively-Sanders
ac2c41c081
Merge pull request #9904 from Microsoft/protected-constructors-accessible-in-subclass-static-methods
...
Protected constructors accessible in subclass static methods
2016-07-25 12:38:07 -07:00
Anatoly Ressin
8cbbcd03f0
Fixed broken singleAsteriskRegex. Fixes #9918 ( #9920 )
2016-07-25 12:35:15 -07:00
Anders Hejlsberg
a1a8725456
Optimize type inference
2016-07-25 09:05:29 -07:00
Anders Hejlsberg
ff0cbb5b29
Merge branch 'master' into literalTypes
...
# Conflicts:
# src/compiler/checker.ts
2016-07-24 07:28:11 -07:00
Anders Hejlsberg
b673d5ff03
Use binary searching in union types to improve performance
2016-07-23 16:48:19 -07:00
Anders Hejlsberg
d7aa40d0fc
Remove unnecessary subtype reduction operations
2016-07-23 14:08:51 -07:00
Anders Hejlsberg
60cc5df2d7
Change getUnionType to default to no subtype reduction
2016-07-23 11:20:16 -07:00
Anders Hejlsberg
b70132a577
Fix linting errors
2016-07-23 09:30:08 -07:00
Anders Hejlsberg
178883a617
Fix issue in getTypeDefinitionAtPosition
2016-07-23 09:29:29 -07:00
Yuichi Nukiyama
7224f22975
throw error when paths option mapping empty array
...
fix
2016-07-23 15:05:36 +09:00
Nathan Shively-Sanders
2169928f2b
Protected constructors now accessible everywhere in subclasses
2016-07-22 17:38:25 -07:00
Anders Hejlsberg
f7753afb2e
Reduce unions of enum literal types when displaying types
2016-07-22 16:55:46 -07:00
Yui
a0406c777f
Port Fix 9894 to master ( #9896 )
...
* Add tests and baselines
* Addess PR: get the first non-ambient external module file
* Rename test file and update baseline
* Add tests and baselines
* Update baselines
2016-07-22 15:41:52 -07:00
Anders Hejlsberg
9a23b11b6a
Change parser to use token() function for accessing current token
2016-07-22 14:28:53 -07:00
Anders Hejlsberg
8c64759f75
Fix bug in binder uncovered by changes
2016-07-22 14:28:09 -07:00
Anders Hejlsberg
afd39cccaa
Enum type is also a union of the literal enum types it declares
2016-07-22 14:27:33 -07:00
Nathan Shively-Sanders
97ef839a03
Protected ctors are accessible in subclass static methods
...
Previously, it was an error to refer to a protected constructor from a
base class, even in a static method where the semantics work. Now it is
not an error in static methods.
2016-07-22 13:48:43 -07:00
Richard Knoll
bd48e55878
Merge remote-tracking branch 'origin/master' into explicitly_included_globs
2016-07-22 12:04:50 -07:00
Yui
bd25c130ca
Port PR 9745 to master ( #9881 )
...
* Add completion for quote property name in object literal expression
* Add fourslash tests for completion of quoted property in object literal expression
* Handle object-literal expression as an argument
Undo wip
Undo wip
Conflicts:
src/services/services.ts
* Add tests and baseline for object literal expression for arguments
2016-07-22 07:15:12 -07:00
Anders Hejlsberg
451f48bf82
Optimize checkTypeRelatedTo, part 2
2016-07-21 09:57:46 -07:00
Nathan Shively-Sanders
57eac1b1e5
Merge pull request #9692 from Microsoft/fix-emit-with-this-and-rest-parameters
...
Fix emit with this and rest parameters
2016-07-21 08:31:29 -07:00
Daniel Rosenwasser
a2f45e9599
Merge pull request #9853 from HerringtonDarkholme/master
...
Fix #9843 . IScriptSnapshot can return undefined
2016-07-20 22:22:35 -07:00
Herrington Darkholme
1b07fbb222
Fix #9843 . IScriptSnapshot can return undefined
2016-07-21 10:01:12 +08:00
Daniel Rosenwasser
82de93236e
Merge branch 'master' into tsaImmutable
2016-07-20 17:29:38 -07:00
Wesley Wigham
729464dc23
Integrate feedback from @mihailik to performance framework ( #9845 )
...
* Integrate feedback from @mihailik
* Rons feedback, explicitly include in new tsconfigs
2016-07-20 15:42:29 -07:00
Anders Hejlsberg
f5f8a4554a
Optimize checkTypeRelatedTo
2016-07-20 11:15:01 -07:00
Yui
80db0f2f16
[Release-2.0] Fix 9782: do not report blocked-scope-used-before-declaration error in ambient context ( #9789 ) ( #9830 )
...
* Do not report block-scoped-used-before-declaration in ambient context
* Add tests and baselines
2016-07-19 15:16:27 -07:00
Wesley Wigham
2a26beb9d8
Add performance framework from transforms branch ( #9536 )
...
* Port performance tools from transforms branch
* Use friendlier names, add compiler option to print all recorded measures
* Always print total time
* + -> .getTime
2016-07-19 15:10:29 -07:00
Anders Hejlsberg
26713c8721
Expand top level of declared type in type alias declaration
2016-07-19 07:18:16 -07:00
Anders Hejlsberg
a17bd026e5
Associate type alias names with union, intersection and literal types
2016-07-18 17:31:17 -07:00
Anders Hejlsberg
0f132cdb7f
Order union type constituents by type ID
2016-07-18 17:14:14 -07:00
Mohamed Hegazy
59c4d3fc3b
Merge branch 'release-2.0'
2016-07-18 14:43:45 -07:00
Mohamed Hegazy
08b3b8be71
Merge pull request #9784 from Microsoft/Fix9636
...
Fix #9636 : report unused type parameter error on the last declaration
2016-07-18 14:42:56 -07:00
Ryan Cavanaugh
3d3ae29bad
Merge pull request #9798 from RyanCavanaugh/fix_9785
...
Provide complete path of tsconfig.json file
2016-07-18 14:35:08 -07:00
Ryan Cavanaugh
22cac1aa49
Provide the complete path to tsconfig file. Fixes #9785
2016-07-18 13:29:38 -07:00
Anders Hejlsberg
c48cd4a93b
Unify 'boolean' and 'true | false'
2016-07-18 13:16:11 -07:00
Mohamed Hegazy
7f045adc86
Code review comments
2016-07-18 09:19:29 -07:00
Yui
9886f88004
[Release-2.0] Fix 9685: missing decoratedClassAlias emit in self-reference decorated class ( #9763 )
...
* Wip
* Fix incorrect emit decorated class alias when targeting es6 or higher
* Add tests and baselines
* Remove unused test file
2016-07-18 08:48:12 -07:00
Mohamed Hegazy
a3b0810d8c
Merge branch 'release-2.0' into Fix9636
2016-07-17 23:51:52 -07:00
Mohamed Hegazy
290caad402
Fix #9636 : Report unused type paramters only on last declaration
2016-07-17 23:51:17 -07:00
Mohamed Hegazy
9ef65cf3af
remove unused method declaration
2016-07-17 23:25:33 -07:00
Anders Hejlsberg
614d171a21
Include type parameter constrains in literal type context determination
2016-07-16 14:45:38 -07:00
Anders Hejlsberg
b5a5758169
No subtype reduction in createUnionOrIntersectionProperty for performance
2016-07-16 07:46:28 -07:00
Wesley Wigham
761482cf5e
Use sorcery to merge sourcemaps between browserify and gulp-typescript ( #9439 )
...
* Use sorcery to merge sourcemaps between browserify and gulp-typescript
* Use shorthand
* Fix nit
* move comments, change loop into map
* Ahahaha, we should run code before pushing it
* Move conditional into call
2016-07-15 16:55:16 -07:00
Ryan Cavanaugh
124305d007
Emit parens around type-asserted binary operators
...
Fixes #9766
2016-07-15 15:56:22 -07:00
Vladimir Matveev
bf8937cc84
remove extra semicolon
2016-07-15 12:51:53 -07:00
Vladimir Matveev
af0c548312
Merge pull request #9750 from Microsoft/fixFormatDiagnostics
...
use sys based host for formatting diagnostics
2016-07-15 12:35:03 -07:00
Vladimir Matveev
859bd1b823
Merge pull request #9750 from Microsoft/fixFormatDiagnostics
...
use sys based host for formatting diagnostics
2016-07-15 12:33:53 -07:00
falsandtru
4954f810ac
Fix a command example in help messages ( #9747 )
2016-07-15 11:52:39 -07:00
Tingan Ho
d66837bac8
Fixes capitalization ( #9736 )
2016-07-15 11:52:26 -07:00
Vladimir Matveev
2da6846557
use sys based host for formatting diagnostics
2016-07-14 23:02:56 -07:00
Sheetal Nandi
f16f27661f
Merge pull request #9529 from Microsoft/identifierAndTokenConstructor
...
Create separate constructors for Tokens and Identifiers
2016-07-14 13:35:09 -07:00
Wesley Wigham
b8e814e9a4
Harden compilerRunner vs rooted path names in tests ( #9714 )
...
* Harden compilerRunner vs rooted path names in tests
* Call toPath on currentDirectory
2016-07-14 10:30:37 -07:00
Anders Hejlsberg
44339dd55f
Performance optimizations
2016-07-14 09:21:18 -07:00
Vladimir Matveev
4f9a23468b
move endsWith to core.ts
2016-07-13 17:08:57 -07:00
Alex Eagle
62f49c3b7e
use getNewLine from host rather than sys
2016-07-13 15:25:31 -07:00
Alex Eagle
05fbe7cddd
use getNewLine from host rather than sys
2016-07-13 15:25:15 -07:00
Alex Eagle
e28acd3c1f
Add formatDiagnostics utility
2016-07-13 14:22:16 -07:00
Andy
ea99262891
Merge pull request #9680 from Microsoft/format_tsx_release-2.0
...
Handle JSX bodies in formatter
2016-07-13 14:01:41 -07:00
Nathan Shively-Sanders
ebb0906928
Use originalKeywordKind to detect this parameters
2016-07-13 13:06:10 -07:00
Wesley Wigham
5484e754e4
Remove extra semicolon
2016-07-13 12:40:37 -07:00
Andy
1546974ea6
Merge pull request #9676 from Microsoft/relative_module
...
Treat "." and ".." as relative module names
2016-07-13 12:18:14 -07:00
Andy Hanson
df59058812
Fix endsWith bug
2016-07-13 11:47:53 -07:00
Nathan Shively-Sanders
5efbf61c95
Skip this
in emitter in 2 more places
2016-07-13 11:42:59 -07:00
zhengbli
606ac0e533
Port #9621 to release-2.0
2016-07-13 11:38:26 -07:00
Zhengbo Li
9eeb69dfbc
Merge pull request #9621 from zhengbli/fixJSDocPropertyTag
...
fix the issue that @property types are not recoganized
2016-07-13 11:32:36 -07:00
Alex Eagle
34e81f2805
Add formatDiagnostics utility
2016-07-13 11:15:09 -07:00
Richard Knoll
574851f526
More PR feedback
2016-07-13 11:00:54 -07:00
Andy Hanson
8e679b7021
Remove duplicate startsWith and endsWith functions
2016-07-13 10:04:21 -07:00
Andy Hanson
e6e6a8b110
Use regex
2016-07-13 09:55:57 -07:00
Andy Hanson
122c47c035
Handle JSX bodies in formatter
2016-07-13 08:15:55 -07:00
Andy Hanson
c90897ccdd
Treat "." and ".." as relative module names
2016-07-13 06:51:00 -07:00
Richard Knoll
fd2caf6e48
Merge remote-tracking branch 'origin/master' into explicitly_included_globs
2016-07-12 11:21:53 -07:00
Richard Knoll
0fe6c55fe3
Merge branch 'master' into explicitly_included_globs
2016-07-12 11:17:42 -07:00
Richard Knoll
e0aca418bc
Responding to PR feedback
2016-07-12 11:13:47 -07:00
Andy Hanson
5d37c29dbb
Handle JSX bodies in formatter
2016-07-12 09:45:55 -07:00
Yui
48ab0ce07f
Change version to 2.1.0 ( #9615 )
2016-07-11 20:53:12 -07:00
Wesley Wigham
cfe3aadeb3
Move unittests into harness
2016-07-11 17:42:52 -07:00
Wesley Wigham
fb20df0568
Have tsconfig for harness
2016-07-11 16:36:20 -07:00
Nathan Shively-Sanders
f19844fbe9
Merge pull request #9580 from Microsoft/compile-with-noImplicitThis
...
Compile with --noImplicitThis
2016-07-11 15:25:44 -07:00
zhengbli
c19512edb5
Add node flag check
2016-07-11 14:57:54 -07:00
Sheetal Nandi
78a1ca7d50
Make setting properties explicit instead of using parameter properties
2016-07-11 14:02:23 -07:00
Nathan Shively-Sanders
fa0fab1523
Merge branch 'release-2.0' of https://github.com/Microsoft/TypeScript into release-2.0
2016-07-11 13:54:22 -07:00
Nathan Shively-Sanders
6414a5721c
Remove another use of this
, in program.ts
2016-07-11 13:49:36 -07:00
Bill Ticehurst
2f768f622e
Merge pull request #9607 from Microsoft/issue9542
...
Fix #9542 (allow files under node_modules to be included in the compilation).
2016-07-11 13:47:39 -07:00
zhengbli
73f741418f
fix the issue that @property types are not recoganized
2016-07-11 13:01:05 -07:00
Nathan Shively-Sanders
4598c13eec
Provide a symbol for salsa-inferred class types
2016-07-11 12:51:45 -07:00
Nathan Shively-Sanders
9ae04223e3
Fix multiple Salsa assignment-declarations
...
Previously, all assignment-declarations needed to be of the same kind:
either all `this.p = ...` assignments or `C.prototype.p = ...`
assignments.
2016-07-11 12:51:24 -07:00
Nathan Shively-Sanders
cc83c799aa
Merge pull request #9578 from Microsoft/fix-salsa-out-of-memory-on-methods-returning-this
...
Provide a symbol for salsa-inferred class types
2016-07-11 11:41:18 -07:00
Nathan Shively-Sanders
a138e6307f
Avoid using this
in object literals where possible
2016-07-11 11:30:22 -07:00
Nathan Shively-Sanders
135cc12218
Merge pull request #9574 from Microsoft/fix-union-of-salsa-property-types
...
Fix type union of differing Salsa assignment-properties
2016-07-11 11:29:02 -07:00
Sheetal Nandi
767da71cc1
Add __tokentag to Token
2016-07-11 11:28:14 -07:00
Sheetal Nandi
0764590691
Make sure the order of setting pos, end, flags, parent, kind is consistent among nodes, tokens and identifiers
2016-07-11 11:03:38 -07:00
Nathan Shively-Sanders
a3d9a85546
Add --pretty to tsconfigs
2016-07-11 11:00:06 -07:00