Commit Graph
201 Commits
Author SHA1 Message Date
Sheetal Nandi 875d0c0c75 Emit unexported aliases that need to be emitted to .d.ts to make correct result 2014-08-06 13:12:49 -07:00
Sheetal Nandi 00b4c2e96d Report errors on properties and variable type visibility
Fixes #69
2014-08-06 11:53:54 -07:00
Sheetal Nandi 5c4009a163 Merge pull request #161 from Microsoft/privacyErrors
Report errors for usage of private types when generating declaration file
2014-08-06 11:51:55 -07:00
Sheetal Nandi e31aa9e12a Added more comments and todos as per code review feedback 2014-08-06 11:26:34 -07:00
Anders Hejlsberg a2a6b8a410 Support extensionless <reference> comments.
Fixes #344.
2014-08-05 14:32:53 -07:00
Daniel Rosenwasser 40f6ed0b65 Merge pull request #262 from Microsoft/trylessCatchesFinallyParseNicely
Improved errors for 'catch'/'finally' blocks missing 'try' statements
2014-08-04 15:56:20 -07:00
Mohamed Hegazy ab05b75297 Merge pull request #326 from Microsoft/getDefinition
Wire getDefinitionAtPosition using the new compiler implementation
2014-08-04 15:11:58 -07:00
Vladimir Matveev 017a76bd85 Merge pull request #357 from Microsoft/specialized_signatures
fixed check for call\construct signatures in interfaces
2014-08-04 15:11:44 -07:00
Mohamed Hegazy 2ae1432644 Merge branch 'master' into getDefinition 2014-08-04 15:08:26 -07:00
Mohamed Hegazy a48ec090ae add missing semicolons 2014-08-04 15:07:42 -07:00
Vladimir Matveev 3fc10ed809 fix misplaced brackets 2014-08-04 15:05:15 -07:00
Vladimir Matveev 059b57f417 fixed check for call\construct signatures in interfaces 2014-08-04 14:37:24 -07:00
Anders Hejlsberg 7fc1b8c4ec Merge pull request #355 from Microsoft/pullContextualTypes3
Consistently record contextual types in function expressions.
2014-08-04 14:36:43 -07:00
Mohamed Hegazy 3c0fd5324c Merge branch 'master' into getDefinition 2014-08-04 13:43:14 -07:00
Mohamed Hegazy f8228e1544 Change variabel names:
* documentsByName to sourceFilesByName
* getSymbolOfIdentifierLikeNode to getSymbolInfo
2014-08-04 13:37:17 -07:00
Dick van den Brink c9c8748152 Code style: Missing semicolons 2014-08-04 22:32:32 +02:00
Anders Hejlsberg 261ff5b338 Consistently record contextual types in function expressions.
Removing check that would guard against recording contextual type. The NodeFlags.ContextChecked flag already
protects against assigning more than once.
2014-08-04 12:58:33 -07:00
Mohamed Hegazy 1667894ec6 Merge branch 'master' into getDefinition 2014-08-04 12:52:27 -07:00
Mohamed Hegazy a061f99541 undo moving unknownSymbol to global 2014-08-04 12:52:19 -07:00
Sheetal Nandi 0e76a82072 Fix the incorrect error reporting and declaration file emit for the type parameter constraint of private methods
Also incorporates code review feedback
2014-08-04 12:06:07 -07:00
Mohamed Hegazy aa75de9c70 Consolidate Document and SoruceFile 2014-08-04 12:00:37 -07:00
Anders Hejlsberg 6b2a970ff3 Fix duplicate getTypeOfExpression function. 2014-08-04 11:58:32 -07:00
Anders Hejlsberg 9a5324347e Merge pull request #330 from Microsoft/pullContextualTypes
Pull model for contextual types
2014-08-04 11:51:23 -07:00
Anders Hejlsberg 2b26e37976 Addressing CR feedback. 2014-08-04 11:40:56 -07:00
Anders Hejlsberg 1e586134f7 Removing trailing comma that breaks cscript.exe. 2014-08-04 11:18:00 -07:00
Anders Hejlsberg 116401b2c8 Addressing CR feedback.
checkImplicitAny now returns void.
2014-08-03 15:53:06 -07:00
Anders Hejlsberg 52ca6071c9 Merge pull request #333 from Microsoft/fixContainerList
Properly build container list in binder.
2014-08-03 15:23:10 -07:00
Daniel Rosenwasser 9a89147587 Merge pull request #324 from Microsoft/watcherIardlyKnowEr
Support the '--watch' compiler flag.
2014-08-02 17:52:02 -07:00
Daniel Rosenwasser 5a8eff848b Minor edits, no longer release 'program'
Edited comments, no longer releasing 'program' as it is potentially confusing and doesn't buy us a heck of a lot anyway.
2014-08-02 12:03:25 -07:00
Daniel Rosenwasser 30509f1ecc Changed messages, got rid of 'oldProgram'. 2014-08-01 18:54:26 -07:00
Mohamed Hegazy 8606873db6 move identifier-like node handleing (e.g. super, this, string property access etc..) to the checker 2014-08-01 17:11:11 -07:00
Vladimir Matveev b43d694ec1 move exportAssignSymbol to symbolLinks 2014-08-01 13:09:06 -07:00
Mohamed Hegazy a303c1eb27 Update getSymbolOfIdentifier to ensure we are gettting the alas symbol in both type and value positions 2014-08-01 12:55:20 -07:00
Anders Hejlsberg e6ea85d31b Properly build container list in binder.
Containers are added to container list only if they aren't already on the list.
Fixes #325.
2014-08-01 12:36:09 -07:00
Mohamed Hegazy 12490755a8 Fix typos 2014-08-01 11:26:31 -07:00
Vladimir Matveev c0b3efbbb4 emit this capturing as a first action in the constructor 2014-08-01 11:16:09 -07:00
Anders Hejlsberg 5d25821cff Introduced fullTypeCheck flag.
checkFunctionExpression only type checks function body if fullTypeCheck is true.
2014-08-01 08:13:38 -07:00
Daniel Rosenwasser 91023227e4 Changed watchFile callback behavior.
We no longer recompile unless the new last-modified time is more recent.
2014-07-31 22:41:01 -07:00
Daniel Rosenwasser f2a8842215 Addressed code review feedback. 2014-07-31 21:43:08 -07:00
Mohamed Hegazy c406662bc4 Wire getDefinitionAtPosition using the new compiler implementation 2014-07-31 19:58:18 -07:00
Mohamed Hegazy 732ffc0d5d More changes to address code review comments 2014-07-31 19:04:55 -07:00
Mohamed Hegazy 61436368b5 Merge branch 'master' into ls 2014-07-31 18:43:53 -07:00
Anders Hejlsberg bd97ba443a Restructuring and cleanup.
Changed binder to record catch clause instead of catch variable as symbol declaration.
Restructuring of getTypeOfVariableDeclaration and getTypeOfVariableOrParameterOrProperty methods.
Restructuring of checkFunctionExpression method.
2014-07-31 15:48:03 -07:00
Daniel Rosenwasser 617910b3d4 Support the '--watch' compiler flag. 2014-07-31 14:57:54 -07:00
Daniel Rosenwasser add65f1f29 Merge branch 'master' into trylessCatchesFinallyParseNicely
Conflicts:
	src/compiler/diagnosticMessages.json
2014-07-31 14:49:14 -07:00
Daniel Rosenwasser 3ba4ad55c0 Merge pull request #320 from Microsoft/slashInCharClass
Fixed error when parsing slashes in RegExp literals.
2014-07-31 14:33:58 -07:00
Vladimir Matveev ed26563146 Merge pull request #317 from Microsoft/order_of_overloads
Disallow statements between overloads
fixed #75 and #92
2014-07-31 11:37:34 -07:00
Vladimir Matveev a62b47eace addressed CR feedback: changed error message 2014-07-31 11:06:42 -07:00
Daniel Rosenwasser 35803db2e6 Fixed error when parsing slashes in RegExp literals.
Basically we weren't recognizing that a slash can occur in a character class, so we were bailing out too early on code like `/[/]/`.

Fixes issue #318.
2014-07-31 00:36:50 -07:00
Vladimir Matveev 59b1e46102 disallow statements between overloads 2014-07-30 16:27:13 -07:00