Daniel Rosenwasser
bb0ec3bbd4
Use an emit helper for JSX Spread Attributes.
2016-04-07 18:30:26 -07:00
Kanchalai Tanglertsampan
7e1470d5d4
Address PR: use getDefaultLibLocation? insteadof getUserDefinedLibFileName
2016-03-28 16:24:16 -07:00
Kanchalai Tanglertsampan
3fef5ba458
Implement --lib flag in the compiler and harness
2016-03-28 14:20:29 -07:00
Anders Hejlsberg
413d9a639f
Merge branch 'master' into strictNullChecks
...
Conflicts:
src/compiler/diagnosticMessages.json
src/compiler/types.ts
tests/baselines/reference/typeGuardOfFormTypeOfEqualEqualHasNoEffect.symbols
tests/baselines/reference/typeGuardOfFormTypeOfNotEqualHasNoEffect.symbols
2016-03-21 16:21:02 -07:00
Yui
b5f418ffcc
Merge pull request #7522 from Microsoft/parseCompilerFlagsWithListOptions
...
Parsing compiler flags which takes options in form of list
2016-03-16 17:13:43 -07:00
Kanchalai Tanglertsampan
9e2df0459e
Address PR
2016-03-16 16:35:51 -07:00
Kanchalai Tanglertsampan
92bee6a533
Unify error message for custom-type compiler option
2016-03-16 13:49:36 -07:00
Chuck Jazdzewski
8bf9da614f
Adding sourceFiles to the Program emit callback
...
This implements #7438
2016-03-15 13:25:18 -07:00
Kanchalai Tanglertsampan
157b8e7456
Add a new unittest for command line parsing for --lib
2016-03-15 11:44:33 -07:00
Anders Hejlsberg
b497243f90
Merge branch 'master' into strictNullChecks
2016-03-14 16:31:29 -07:00
Kanchalai Tanglertsampan
be0592da3b
Add correct options for --lib
2016-03-14 15:53:42 -07:00
Mohamed Hegazy
0735f465f0
Add support for list types
...
consolidate typings options and commmandline option parsing from json files
Fix
2016-03-14 15:28:49 -07:00
Anders Hejlsberg
b1bef15a1e
Removing 'T?' type notation (use 'T | null | undefined' instead)
2016-03-14 15:11:27 -07:00
Mohamed Hegazy
3adab0cec3
revert
2016-03-14 14:42:43 -07:00
Ryan Cavanaugh
7d372bf6dc
Merge pull request #7264 from RyanCavanaugh/umd
...
UMD support
2016-03-10 10:59:45 -08:00
Anders Hejlsberg
cf9e08b75c
Merge branch 'master' into strictNullChecks
...
Conflicts:
src/compiler/checker.ts
2016-03-09 13:00:59 -08:00
Ryan Cavanaugh
44aa7388ea
UMD support
2016-03-09 10:08:24 -08:00
Anders Hejlsberg
bf97250306
Skip unnecessary instatiation of anonymous types
2016-03-09 09:14:55 -08:00
Mohamed Hegazy
a5354608fc
Merge pull request #7392 from Microsoft/declarationEmitFixes
...
Declaration emit fixes
2016-03-04 15:35:43 -08:00
Mohamed Hegazy
3bb2c57264
Fix #3810 : Handel expressions in extends clauses
2016-03-03 22:35:30 -08:00
Anders Hejlsberg
87ae0489eb
Reinstate separate type kinds for 'null' and 'undefined'
2016-03-03 17:44:46 -08:00
Jason Ramsay
ae2b7c2aa2
Removing cachePath from discoverTypings and DiscoverTypingsInfo.
...
With the move to using the packageNameToLocation map it is no longer required.
2016-03-03 15:17:52 -08:00
Anders Hejlsberg
ea4b13bdf9
Allow 'null' and 'undefined' as type names
2016-03-03 11:18:12 -08:00
Anders Hejlsberg
33e3825beb
Assigned-before-use checking for non-nullable variables
2016-03-02 16:40:16 -08:00
jramsay
de47fcc113
Merge pull request #7179 from Microsoft/jsTypingForAcquireDts
...
Salsa: JS support for discovering and acquiring d.ts files
2016-03-02 11:10:12 -08:00
Jason Ramsay
e8772bc0a2
- Adding new lines after { for single-line if statements
...
- Renaming DiscoverTypingsSettings to DiscoverTypingsInfo to match host
2016-03-02 10:11:13 -08:00
Jason Ramsay
6aad783db8
- Adding DiscoverTypingsSettings
...
- Remove all references to Tsd.
Instead pass a map of package names to cached typing locations
2016-03-01 18:52:11 -08:00
Bill Ticehurst
7dcdb827b6
Add JavaScriptFile to ContextFlags
...
(cherry picked from commit 6253c9b5cd6a8fa5e08bf88ddabdf0283ccf7007)
2016-03-01 11:07:04 -08:00
Anders Hejlsberg
82169ce7eb
Fix getTypeOfSymbolAtLocation to handle hypothetical lookups
2016-02-27 18:12:40 -08:00
Anders Hejlsberg
3d7631dbe8
Support dotted names ("x.y.z") in type guards
2016-02-27 11:39:16 -08:00
Jason Ramsay
284d9f527c
Salsa: JS support for discovering and acquiring d.ts files
...
(Mostly isolating VS host changes from PR#6448)
2016-02-21 21:35:02 -08:00
Asad Saeeduddin
ba63a48fe1
Add declarationDir option
2016-02-20 13:28:21 -05:00
Anders Hejlsberg
74d8c40007
Merge branch 'master' into strictNullChecks
2016-02-19 19:38:00 -08:00
jramsay
6b05ad7627
Merge pull request #7107 from Microsoft/ScriptBlockSupport
...
Salsa: adding ScriptKind to ensure script blocks are processed as JS.
2016-02-19 14:40:18 -08:00
Anders Hejlsberg
44d7897d6d
Merge branch 'master' into strictNullChecks
...
Conflicts:
src/compiler/checker.ts
src/compiler/types.ts
2016-02-18 18:48:10 -08:00
Mohamed Hegazy
353998a6bd
Rever change to EmitOutput.diagnostics
2016-02-18 12:06:17 -08:00
Jason Ramsay
81df1cbc0b
Addressing CR comments
...
- Adding ScriptKind to SourceFile
- Only update ScriptKind on creation, on update use the SourceFile's scriptKind
- If scriptKind is unknown, default to ScriptKind.Ts
- Replacing try-catch with in this.shimHost
2016-02-17 19:07:19 -08:00
Anders Hejlsberg
1f096bd080
Add '!' non-null assertion postfix operator
2016-02-17 18:44:15 -08:00
Jason Ramsay
2aa8f05e64
Fix to test harness and addressing CR comments
2016-02-16 22:44:43 -08:00
Mohamed Hegazy
eed65a0334
Port #7106 to master
2016-02-16 22:01:28 -08:00
Jason Ramsay
a71fa457bd
Salsa: adding ScriptKind to ensure script blocks (.html, .aspx, .ascx, etc) are processed as JS
2016-02-16 17:37:24 -08:00
Daniel Rosenwasser
4353865f8b
Merge pull request #7067 from Microsoft/removePredicateTypinessToMaster
...
(Porting to 'master') Remove notion of predicates as types, move predicates back to signatures
2016-02-16 11:58:47 -08:00
Yui
9e60af8775
Merge pull request #7033 from Microsoft/port6860
...
Port PR#6860 lexically check calling super before this
2016-02-16 09:33:39 -08:00
Anders Hejlsberg
6d6d2a11bc
Introduce nullable types in checker
2016-02-15 09:34:14 -08:00
Anders Hejlsberg
26e371d7bd
Use TypeFlags.Undefined for both undefined and null types
2016-02-14 19:15:04 -08:00
Anders Hejlsberg
8e926035b7
Parsing of nullable types
2016-02-14 18:59:58 -08:00
Anders Hejlsberg
26cc99b92d
Introduce -strictNullChecks compiler option
2016-02-14 18:41:38 -08:00
Daniel Rosenwasser
cf13a71af4
Move type predicates back onto signatures, remove narrowing for property/get type guards.
2016-02-12 15:21:48 -08:00
Kanchalai Tanglertsampan
90c08c2201
Port PR#6860 lexically check calling super before this
...
Update baselines
add baselines
Update baseline
Port PR #6860 lexically check calling super before this
Check using "super" before "this" lexically instead of using the
NodeCheckFlags
Remove "type-checking" way of checking if super is used before this.
Instead check using whether super occurs before this syntactically
Refactor the code
Dive down to get super call
Address PR
Address PR about tests
Add a flag so we don't repeatedly finding super call
rename function
Move tests into correct location
Address PR: report error on super call instead of entire constructor node
remove marge mark
2016-02-11 14:05:20 -08:00
Ryan Cavanaugh
48c5bcf148
Correctly resolve qualfied JSX tag names
...
Fixes #7020
2016-02-11 11:20:55 -08:00