Commit Graph

26317 Commits

Author SHA1 Message Date
Cyrus Najmabadi 0d233fdd17 No need to tweak spans in syntactic highlights. 2015-04-08 22:26:34 -07:00
Cyrus Najmabadi 02778b19b4 Get semantic document highlights as well through the new API. 2015-04-08 22:24:59 -07:00
Yui T 111a297584 Check for import, import equal, module 2015-04-08 22:07:12 -07:00
Yui T fb9009f741 Completely remove check strict mode from parser 2015-04-08 22:07:02 -07:00
Yui T c93fb35c53 Move strict mode check into TypeChecker 2015-04-08 22:06:51 -07:00
Cyrus Najmabadi 6dee32a703 Extract code for getting syntactic document highlights into its own function. 2015-04-08 21:59:50 -07:00
Daniel Rosenwasser 4eb8c738ee Merge pull request #2666 from Microsoft/occurrencesOnServer
Support getOccurrences on the TS Server
2015-04-08 18:11:50 -07:00
Ron Buckton 0546042df3 Add support for parsing destructuring patterns in arrow function parameter lists 2015-04-08 18:01:21 -07:00
Ron Buckton 609036a2d6 PR feedback and baseline updates 2015-04-08 17:06:00 -07:00
Daniel Rosenwasser 180f17d088 Destructure arguments at dispatched calls. 2015-04-08 17:02:42 -07:00
Ron Buckton 51acda8e1d Changed isExpression logic related to decorators 2015-04-08 16:18:49 -07:00
Jason Freeman d459c59028 Merge branch 'master' of https://github.com/Microsoft/TypeScript into iteratorSpreadDestructure 2015-04-08 16:14:24 -07:00
Ron Buckton 3702568916 Fix for #2619 2015-04-08 15:27:41 -07:00
Daniel Rosenwasser 927231bdcf Merge pull request #2124 from Microsoft/unrewrite
Revert ES3/ES5 downlevel computed property emit logic to not use tree rewriting
2015-04-08 11:45:37 -07:00
Cyrus Najmabadi 4054eca462 Merge branch 'master' into jsSigHelp
Conflicts:
	tests/baselines/reference/APISample_compile.js
	tests/baselines/reference/APISample_compile.types
	tests/baselines/reference/APISample_linter.js
	tests/baselines/reference/APISample_linter.types
	tests/baselines/reference/APISample_linter.types.pull
	tests/baselines/reference/APISample_transform.js
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.js
	tests/baselines/reference/APISample_watcher.types
2015-04-08 02:12:53 -07:00
Daniel Rosenwasser 12ccdb63db Apparently our server tests can't handle negative tests. 2015-04-08 01:19:45 -07:00
Daniel Rosenwasser d8d494d4da *Actually dispatched* on the logic. 2015-04-08 00:41:12 -07:00
Daniel Rosenwasser 93bb224545 Actually implemented the session-side logic. 2015-04-08 00:35:34 -07:00
Mohamed Hegazy a998abb153 Add inlineSourceMap option 2015-04-08 00:14:23 -07:00
Daniel Rosenwasser 5b6c65ffe0 Added support for getOccurrences to the server. 2015-04-07 23:31:09 -07:00
Mohamed Hegazy 73e22ed9c2 Add convertToBase64 method 2015-04-07 22:54:06 -07:00
Ron Buckton 68b38b3e6a Merge pull request #2658 from Microsoft/fixDecoratorBindingForSuperThis
Fixes #2601, incorrect resolution of this/super
2015-04-07 19:10:03 -07:00
Ron Buckton eec39c2fc5 Additional rule for spacing between decorator on same line as its declaration 2015-04-07 17:23:52 -07:00
Ron Buckton 1a1bb34864 Added rules for spacing around decorators, computing the undecorated start line of a node 2015-04-07 16:15:02 -07:00
Steve Lucco de2e1455bb Merge pull request #2591 from Microsoft/serverAddExitMessage
Add an exit message for the server.
2015-04-07 16:00:48 -07:00
Mohamed Hegazy 87a02ebb00 Fix find all refs and goto def for decorators 2015-04-07 12:37:05 -07:00
Ron Buckton 4ff87b71a4 Fixes #2601, incorrect resolution of this/super 2015-04-07 11:42:08 -07:00
Mohamed Hegazy 863f0b6180 Merge pull request #2643 from Microsoft/checkForOmittedExpression
Check for omitted expressions when checking const and let declaration names
2015-04-06 16:42:51 -07:00
Mohamed Hegazy 189f07ae7f Merge pull request #2642 from Microsoft/getExportsForModuleNullCheck
Add null check when querying for exported from a module
2015-04-06 16:16:08 -07:00
Mohamed Hegazy d71632aa38 Check for omitted expressions when checking const and let declaration names 2015-04-06 15:32:22 -07:00
Mohamed Hegazy 3ca76ca53b Add null check when querying for exports from a module 2015-04-06 14:54:22 -07:00
Daniel Rosenwasser ffae189e89 Merge branch 'master' into unrewrite
Conflicts:
	src/compiler/emitter.ts
	tests/baselines/reference/ES5SymbolProperty1.js
	tests/baselines/reference/FunctionDeclaration8_es6.js
	tests/baselines/reference/FunctionDeclaration9_es6.js
	tests/baselines/reference/FunctionPropertyAssignments5_es6.js
	tests/baselines/reference/computedPropertyNames10_ES5.js
	tests/baselines/reference/computedPropertyNames11_ES5.js
	tests/baselines/reference/computedPropertyNames18_ES5.js
	tests/baselines/reference/computedPropertyNames19_ES5.js
	tests/baselines/reference/computedPropertyNames1_ES5.js
	tests/baselines/reference/computedPropertyNames20_ES5.js
	tests/baselines/reference/computedPropertyNames22_ES5.js
	tests/baselines/reference/computedPropertyNames23_ES5.js
	tests/baselines/reference/computedPropertyNames25_ES5.js
	tests/baselines/reference/computedPropertyNames26_ES5.js
	tests/baselines/reference/computedPropertyNames28_ES5.js
	tests/baselines/reference/computedPropertyNames29_ES5.js
	tests/baselines/reference/computedPropertyNames30_ES5.js
	tests/baselines/reference/computedPropertyNames31_ES5.js
	tests/baselines/reference/computedPropertyNames33_ES5.js
	tests/baselines/reference/computedPropertyNames34_ES5.js
	tests/baselines/reference/computedPropertyNames46_ES5.js
	tests/baselines/reference/computedPropertyNames47_ES5.js
	tests/baselines/reference/computedPropertyNames48_ES5.js
	tests/baselines/reference/computedPropertyNames49_ES5.js
	tests/baselines/reference/computedPropertyNames4_ES5.js
	tests/baselines/reference/computedPropertyNames50_ES5.js
	tests/baselines/reference/computedPropertyNames5_ES5.js
	tests/baselines/reference/computedPropertyNames6_ES5.js
	tests/baselines/reference/computedPropertyNames7_ES5.js
	tests/baselines/reference/computedPropertyNames8_ES5.js
	tests/baselines/reference/computedPropertyNames9_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType10_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType4_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType5_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType6_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType7_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType8_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType9_ES5.js
	tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js
	tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js
	tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map
	tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt
	tests/baselines/reference/parserES5ComputedPropertyName2.js
	tests/baselines/reference/parserES5ComputedPropertyName3.js
	tests/baselines/reference/parserES5ComputedPropertyName4.js
	tests/baselines/reference/privateIndexer2.js
2015-04-06 14:19:28 -07:00
Cyrus Najmabadi 78a79140b3 Get sighelp for arbitrary functions working in .js files. 2015-04-06 14:10:04 -07:00
Mohamed Hegazy ccb562385d Use sys.newLine in transpile when possibel 2015-04-06 14:05:44 -07:00
Mohamed Hegazy 1d5d10a111 add comment 2015-04-06 13:38:37 -07:00
Mohamed Hegazy 29fe9f560f Merge branch 'master' into APISamples
Conflicts:
	tests/baselines/reference/APISample_compile.js
	tests/baselines/reference/APISample_compile.types
	tests/baselines/reference/APISample_linter.js
	tests/baselines/reference/APISample_linter.types
	tests/baselines/reference/APISample_transform.js
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.js
	tests/baselines/reference/APISample_watcher.types
2015-04-06 13:38:16 -07:00
Ron Buckton e195d89fad Merge pull request #2589 from Microsoft/decorators_types
Experimental support for decorator type metadata. 
NOTE: Requires a polyfill for `Reflect.metadata` which has not yet been considered by TC39 for ES7.
2015-04-06 12:50:18 -07:00
Ron Buckton 1a1813363e Merge branch 'master' into decorators_types 2015-04-06 11:06:38 -07:00
Ron Buckton 9dfb724536 Fix for #2249 2015-04-06 10:52:31 -07:00
Ron Buckton 98c56ae9a8 PR feedback 2015-04-06 10:42:58 -07:00
Ahmad Farid 7fcbb8c9a0 adding unit tests fot block comments outlining 2015-04-03 19:21:27 -07:00
Yui T 09d037fb6f Address code review 2015-04-03 17:59:40 -07:00
Yui T 742f65c80b Merge branch 'master' into parseClassInStrictMode
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2015-04-03 17:23:02 -07:00
Cyrus Najmabadi 766d34d0dc Rename variables to be consistent. 2015-04-03 16:55:54 -07:00
Cyrus Najmabadi 1178e84a68 Don't cache the typechecker at the LS level. Just get it when needed from the program. 2015-04-03 16:50:32 -07:00
Cyrus Najmabadi 4cdc97094f Produce a map of named declarations instead of a flat list.
Produce a map of named declarations instead of a flat list.
2015-04-03 16:21:24 -07:00
Ahmad Farid 854d5496b4 updating tests 2015-04-03 15:28:23 -07:00
Ahmad Farid 5543d5456c removing extra reference header 2015-04-03 14:11:18 -07:00
Cyrus Najmabadi 7562a34ae8 Add support for emitting static properties in class expressions in ES6. 2015-04-02 17:43:41 -07:00
Yui T aef37f1e41 Address code review: have more explicit error 2015-04-02 17:42:24 -07:00