168 Commits

Author SHA1 Message Date
Yui T
54dcf39674 Add getCurrentDirectory and getDefaultLibFilename into interface for host 2014-09-16 13:19:49 -07:00
Yui T
94723a9ad1 Remove concatenation of syntacticErrors instead return immediately if encountering any error 2014-09-16 10:28:05 -07:00
Yui T
2ad20d2e6b Fix declaring function for writer and setting writer to undefined 2014-09-12 13:19:26 -07:00
Yui T
0b06ddcc9a Fix getEmitOutput to only output one file except when 'out' flag is specified. Add testcases 2014-09-12 12:57:00 -07:00
Yui T
26fbb987bb Remove getCurrentDirectory and getDefaultLibFilename from LanguageServiceShimHost 2014-09-10 16:10:40 -07:00
Yui T
7b0662be9e Remove getDirectory from LanguageServiceShimHost 2014-09-10 15:58:16 -07:00
Yui T
6cba535f20 Fix spelling 2014-09-10 09:57:36 -07:00
Yui T
be4133a162 Add meta-data flag name to modify compilationSettings 2014-09-10 09:57:28 -07:00
Yui T
6ef41a74c7 Move checking semantic diagnostics into emitFiles function rather than
getEmitOutput
2014-09-10 09:57:26 -07:00
Yui T
537f55cede Change getCurrentDirectory and getDefaultLibname from passing around
function to its final value
2014-09-10 09:57:24 -07:00
Yui T
451f92bc24 Expose function shouldEmitToOwnFile to be called in services.ts 2014-09-10 09:57:16 -07:00
Yui T
2acd98e03e Minor spelling and spacing fix 2014-09-10 09:54:42 -07:00
Yui T
d52fe20df3 Add getEmitOutput and update call to getCurrentDirectory 2014-09-10 09:54:34 -07:00
Yui T
6cb5096087 Make getCurrentDirectory and getDefaultLibFilename invocation in management side 2014-09-10 09:54:28 -07:00
Cyrus Najmabadi
aeb428e9e5 Fix incremental parsing bug due to non invalidating cached data in nodes. 2014-09-05 17:59:52 -07:00
Ingvar Stepanyan
797ab01467 Return undefined instead of null. 2014-09-03 20:06:17 +03:00
Ingvar Stepanyan
4083d9299b Fixes #492
Conflicts:
	src/services/services.ts
2014-09-03 20:06:14 +03:00
Mohamed Hegazy
dc0560ae59 Merge branch 'master' into getReferences
Conflicts:
	tests/baselines/reference/aliasUsageInGenericFunction.types
	tests/baselines/reference/aliasUsageInObjectLiteral.types
	tests/baselines/reference/aliasUsageInOrExpression.types
	tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.types
2014-08-29 15:56:36 -07:00
Mohamed Hegazy
49d8157d28 ensure that sys is not used outside tsc.ts 2014-08-28 23:10:05 -07:00
Daniel Rosenwasser
813f28d865 Removed assertion. 2014-08-27 17:28:45 -07:00
Daniel Rosenwasser
fd93a3b4f7 What's in a name anyhow? 2014-08-27 17:26:58 -07:00
Daniel Rosenwasser
0ce39a3c2a Addressed CR feedback. 2014-08-27 17:19:08 -07:00
Daniel Rosenwasser
04456a261a Made 'isAnyFunction' more exhaustive as it should be. 2014-08-27 16:58:59 -07:00
Daniel Rosenwasser
ea613fd0d8 Replaced ES5 functions with analogous core.ts ones. 2014-08-27 16:39:05 -07:00
Daniel Rosenwasser
50d0cdc428 Better coverage against function boundaries. 2014-08-27 16:33:35 -07:00
Daniel Rosenwasser
232e51383f Moved null-guards to appropriate places, added helpers. 2014-08-27 16:07:46 -07:00
Daniel Rosenwasser
3825c9b542 Handled function boundaries. 2014-08-27 12:12:45 -07:00
Daniel Rosenwasser
88f37e579c Support for switch/case/default/break in getOccs 2014-08-26 17:24:11 -07:00
Daniel Rosenwasser
1f77198c4c Made getOccs more resilient. 2014-08-26 12:27:54 -07:00
Daniel Rosenwasser
558be4ea22 Implemented getOccsAtPos for try-catch-finally. 2014-08-26 11:48:31 -07:00
Daniel Rosenwasser
5d15cd22b1 Beginning special casing for getOccurrencesAtPosition. 2014-08-26 11:44:30 -07:00
Daniel Rosenwasser
f948f5d3f7 Re-added fourslash tests, corrected failures. 2014-08-25 17:35:18 -07:00
Daniel Rosenwasser
aef859f442 Merge branch 'master' into getReferences
Conflicts:
	src/services/services.ts
2014-08-25 16:51:35 -07:00
Daniel Rosenwasser
5c1b245d1d Initial work on getOccurrencesAtPosition. 2014-08-25 14:20:59 -07:00
Mohamed Hegazy
892baf0d6c use Identifiers list from the parser to filter getReferences instead of bloomFilters 2014-08-22 22:27:05 -07:00
Mohamed Hegazy
695379404a remove bloom filters 2014-08-22 22:09:36 -07:00
Mohamed Hegazy
8fcc8b26ba Ensure range for string literal references are within the quotes to ensure rename is successful 2014-08-22 22:07:45 -07:00
Mohamed Hegazy
c741e26031 Support external module names correctelly 2014-08-22 21:28:27 -07:00
Mohamed Hegazy
fefe2fb093 Implement getScope 2014-08-22 16:30:21 -07:00
Cyrus Najmabadi
9aee22b943 Merge branch 'master' into newLanguageService
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/harness/fourslash.ts
	src/harness/harness.ts
	src/harness/harnessLanguageService.ts
	src/harness/rwcRunner.ts
	src/services/services.ts
2014-08-22 14:23:14 -07:00
Mohamed Hegazy
dbf9e47832 use isDeclarationOrFunctionExpressionOrCatchVariableName instead of isDeclarationIdentifier in the language service and remove unused functions 2014-08-21 13:34:50 -07:00
Mohamed Hegazy
6965a06b04 Support getReferences on rightside of export assignment and import statements 2014-08-21 13:03:46 -07:00
Dick van den Brink
606601bc7c Fixed TypeScript.declarationEmitGetAccessorFunctionTime having a wrong value 2014-08-21 21:27:30 +02:00
Mohamed Hegazy
bbeeb8df7f update getSymbolInfo 2014-08-21 00:13:29 -07:00
Mohamed Hegazy
e0ffc47acc Merge branch 'master' into getReferences
Conflicts:
	src/compiler/checker.ts
2014-08-20 22:55:41 -07:00
Mohamed Hegazy
74518a9b7f respond to code review comments 2014-08-20 22:46:47 -07:00
Sheetal Nandi
6e4d0ef1ef Merge pull request #452 from Microsoft/emitComments
Emit comments in the .js and .d.ts files
2014-08-20 17:07:24 -07:00
Mohamed Hegazy
978c2ef670 Fix getReferences for labels 2014-08-20 15:35:30 -07:00
Mohamed Hegazy
55512faa0d Use new tree to get Bloom filters 2014-08-20 11:25:39 -07:00
Adam Freidin
828f4c9340 spelling fix 2014-08-19 08:01:12 -07:00