Commit Graph
7425 Commits
Author SHA1 Message Date
Anders Hejlsberg 25a72d6085 Removing unused functions 2016-03-04 15:51:22 -08:00
Anders Hejlsberg 15b240548f Extract and lift nullability over best common supertype 2016-03-04 15:01:11 -08:00
Anders Hejlsberg d6fcd1af1b Consider for-in and for-of variables to be definitely assigned 2016-03-04 13:19:58 -08:00
Anders Hejlsberg c623e1f8c9 No widening of 'null' and 'undefined' types in --strictNullChecks mode 2016-03-04 10:42:23 -08:00
Anders Hejlsberg 87ae0489eb Reinstate separate type kinds for 'null' and 'undefined' 2016-03-03 17:44:46 -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
Anders Hejlsberg ea3593239c Fix linting error 2016-02-28 10:30:19 -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
Anders Hejlsberg 5e5381daec Merge branch 'master' into strictNullChecks 2016-02-20 19:23:08 -08:00
Mohamed Hegazy 9d6564239f Merge pull request #7164 from Microsoft/wordCleanup
removing some culturally sensitive words
2016-02-20 12:19:49 -08:00
Tingan Ho 30294c7fc0 Fixes linting issues 2016-02-20 11:54:09 +08:00
Anders Hejlsberg 74d8c40007 Merge branch 'master' into strictNullChecks 2016-02-19 19:38:00 -08:00
Tingan Ho 785e55db8d Fixes outDir exclude 2016-02-20 10:25:16 +08:00
Anders Hejlsberg ed40fbf2d8 Suport both x != null and x != undefined in non-null type guards 2016-02-19 16:48:58 -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
Jason Ramsay 2da73b3340 Change to getScriptKindFromFileName to avoid unnecessary array allocation in split 2016-02-19 14:20:32 -08:00
Daniel Rosenwasser 3380f2bbd5 Merge pull request #7143 from SaschaNaz/formatJsxText
(Un)format JSX Text
2016-02-19 13:47:44 -08:00
Nathan Shively-Sanders 14a457e518 Address review comments
1. Give class name in error message.
2. Reduce nesting via an early exit.
2016-02-19 13:05:19 -08:00
Nathan Shively-Sanders bb2eb635d6 Merged classes and interfaces must have identical type constraints
Previously, only interfaces needed to check this, but now that classes and
interfaces can merge, the check needs to happen in more places.
2016-02-19 11:36:35 -08:00
Anders Hejlsberg 50ea0bfc71 Support x == null and x != null in non-null guards. Also, allow == and != in type guards. 2016-02-19 09:32:56 -08:00
Nathan Shively-Sanders e46b7b05ab Merge pull request #7144 from Microsoft/super-inside-inner-class-crashes
Super inside inner class crashes
2016-02-19 08:45:35 -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
Jason Ramsay 11acf3a4a8 Applying getScriptKindFRomFileName to HostFileInformation before we set the ScriptKind.
If the host returns ScriptKind 'Unknown' or 'undefined' we attempt to get the correct ScriptKind based on the file name.
If this cannot be determined we return the default ScriptKind 'TS'
2016-02-18 16:33:01 -08:00
Tingan Ho 46cc470332 Fixes exclude options 2016-02-19 08:25:23 +08:00
Mohamed Hegazy 22142d2ccb removing some culturally senstive words 2016-02-18 16:25:16 -08:00
Nathan Shively-Sanders 67b2a17034 super's containing class doesn't require base node
In a class nested inside a constructor, `super` refers to the outer
class' `super`, but when resolving a super call its containing class is
identified as the immediately containing class. Previously, the compiler
crashed, preventing the error from being reported correctly. Now it
handles this disparity and correctly reports the error.
2016-02-18 16:19:06 -08:00
Kagami Sascha Rosylight 33970b8045 format jsx 2016-02-19 09:16:52 +09:00
Jason Ramsay 3e124ad35d parser and services changes due to CR comments
- Adding assert to ensure script kinds are not modified for registered docs
- setting script kind in parseSourceFile and consuming it initialize state and getLanguageVariant
2016-02-18 12:19:34 -08:00
Mohamed Hegazy 353998a6bd Rever change to EmitOutput.diagnostics 2016-02-18 12:06:17 -08:00
Anders Hejlsberg 1e8a7e28d0 Correct && operator to produce nullable values 2016-02-18 09:13:18 -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 46837fd77d Disallow line breaks between operand and '!' non-null assertion operator 2016-02-17 19:03:56 -08:00
Anders Hejlsberg 1f096bd080 Add '!' non-null assertion postfix operator 2016-02-17 18:44:15 -08:00
Vladimir Matveev 5e770bda2e correctly check exported type aliases merged with overloads 2016-02-17 10:19:20 -08:00
Jason Ramsay 26e14dd76f Removing trailing whitespace from services.ts 2016-02-17 07:42:27 -08:00
Mohamed Hegazy 2b52ae1cb7 Fix lint errors 2016-02-16 22:57:27 -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
Mohamed Hegazy bde20c4ec7 Merge pull request #6885 from AbubakerB/constructorAccessibility
Constructor Visibility
2016-02-16 16:50:19 -08:00
Anders Hejlsberg a8633eec90 Merge pull request #7029 from Microsoft/implicitIndexSignatures
Implicit index signatures
2016-02-16 15:37:18 -08:00
AbubakerB de23e2ff74 Merge branch 'master' into constructorAccessibility
Conflicts:
	src/compiler/checker.ts
2016-02-16 22:49:23 +00:00
Vladimir Matveev 3820dfa830 Merge pull request #7068 from Microsoft/relativeNamesInClassicResolution
classic resolution: don't perform folder walk if module name is relative
2016-02-16 12:03:09 -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
Daniel Rosenwasser fc63b5fc13 Merge pull request #7070 from Microsoft/fixTsconfigModuleOptions
Remove the 'module' option from our 'tsconfig.json' files.
2016-02-16 11:46:33 -08:00
Bill Ticehurst 9cc092ad78 Merge pull request #6881 from Microsoft/issue6872
Allow decorators in JavaScript files
2016-02-16 11:20:55 -08:00
Anders Hejlsberg bd12f1b913 Add missing semicolon 2016-02-16 11:03:28 -08:00
Anders Hejlsberg bf89530e36 Add truthy/falsey guards for nullable types 2016-02-16 09:51:49 -08:00