174 Commits

Author SHA1 Message Date
Mohamed Hegazy
25dfcec83b Merge pull request #4290 from Microsoft/fix4277
Fix #4277: Ensure we are passing refEnd and not length to findSourceFile
2015-08-17 15:21:04 -07:00
Mohamed Hegazy
fdda66f055 handel merge conflict, use refPos instead of start 2015-08-13 12:45:26 -07:00
Mohamed Hegazy
94fa6b92b4 Fix #4277: Ensure we are passing refEnd and not length to findSourceFile.
Also add a more conservative check for empty refPos and refEnd to ensure diagnostic emit does not fail
2015-08-12 13:04:10 -07:00
Vladimir Matveev
fc1e89ace5 addressed CR feedback: merged getDefaultModuleResolver and resolveModuleName into one function, added comments 2015-08-05 14:30:41 -07:00
Vladimir Matveev
03aaf7cd7c addressed PR feedback 2015-08-04 21:22:37 -07:00
Vladimir Matveev
49ad395de1 resolveModuleName => resolvedModuleNames, added tests 2015-08-04 15:21:16 -07:00
Vladimir Matveev
f22c160a24 Merge remote-tracking branch 'origin/master' into reuseAndCache 2015-08-03 15:30:05 -07:00
Vladimir Matveev
36043cd88a merge with master 2015-07-29 17:16:58 -07:00
Vladimir Matveev
d7661ecf8a do not try to resolve modules that has '!' in the name, put .tsx extension to the end of the list 2015-07-29 16:24:16 -07:00
Vladimir Matveev
e1fa3c5515 Merge pull request #3982 from Microsoft/sourceMapsInTranspile
add transpileModule function that can return emitted source map
2015-07-23 17:25:30 -07:00
Vladimir Matveev
500cadac5c add transpileModule function that can return emitted source map 2015-07-22 11:58:27 -07:00
Vladimir Matveev
9332f7e1e3 introduce ModuleResolutionHost interface 2015-07-15 11:40:49 -07:00
Daniel Rosenwasser
b8b4c0f5d4 Bump version number. 2015-07-14 17:25:34 -07:00
Daniel Rosenwasser
8a8a412a7f Fix file endings. 2015-07-14 16:51:22 -07:00
Vladimir Matveev
e15c700549 clean old program to prevent it from being captured into the closure 2015-07-09 14:45:39 -07:00
Vladimir Matveev
6a502cdacc Merge remote-tracking branch 'origin/master' into reuseProgramStructure 2015-07-09 14:40:54 -07:00
Vladimir Matveev
2685d409d5 addressed PR feedback 2015-07-09 14:40:33 -07:00
Dan Quirk
5dfa6104f9 Turn off a few rules and more cleanup post merge 2015-07-08 17:42:26 -07:00
Dan Quirk
be1371d3cd Merge master 2015-07-08 15:35:49 -07:00
Cyrus Najmabadi
3a26cd21f9 Adding comments. 2015-07-06 15:31:22 -07:00
Cyrus Najmabadi
1dfcc3ec0e Merge branch 'master' into cancellableDiagnostics
Conflicts:
	src/services/services.ts
	src/services/shims.ts
2015-07-06 15:19:57 -07:00
Ron Buckton
4b4a96b9dc Merge branch 'master' into asyncFunctions 2015-07-01 09:27:45 -07:00
Dan Quirk
d4403df35e var -> let 2015-06-25 17:36:19 -07:00
Dan Quirk
ed1ff3d57d Fixing up whitespace and semicolons 2015-06-25 16:24:41 -07:00
Vladimir Matveev
66f673618a addressed PR feedback 2015-06-24 18:12:02 -07:00
Vladimir Matveev
c968b3653e addressed PR feedback 2015-06-24 17:40:04 -07:00
Dick van den Brink
2a483187a7 Remove unused variables 2015-06-25 00:23:13 +02:00
Vladimir Matveev
ba3eb0d0cf added Program.structureIsReused property, disallow reuse if target module
kind differs in old and new programs, move setting of resolvedModules
cache to the program, added tests
2015-06-24 12:59:22 -07:00
Vladimir Matveev
39e832da55 use existing information about module resolutions 2015-06-23 10:51:00 -07:00
Vladimir Matveev
226deec4b0 reuse structure of the program if changes in files don't affect imports/references, remove module resolution from the checker 2015-06-22 22:19:28 -07:00
Ron Buckton
76c0d32f9d Moved async functions for ES6 behind experimental flag 2015-06-19 18:05:43 -07:00
Cyrus Najmabadi
c9c0f3a4ad PR feedback. 2015-06-18 12:04:26 -07:00
Cyrus Najmabadi
e015b17638 Merge branch 'master' into cancellableDiagnostics
Conflicts:
	src/compiler/checker.ts
	src/compiler/program.ts
	src/compiler/types.ts
	src/services/services.ts
2015-06-18 11:23:14 -07:00
Cyrus Najmabadi
c4f65f8bbf PR feedback. 2015-06-18 11:00:50 -07:00
Cyrus Najmabadi
1a96a146ed Make type-checking cancellable. 2015-06-18 10:52:19 -07:00
Cyrus Najmabadi
ef7d1136b8 Make it so all our diagnostics APIs return an independent set of diagnostics.
In order to get all diagnostics, you must call all the APIs.  And no APIs return
diagnostics produced by other APIs.  This is how things were before hte addition
of the getCompletionOptionsDiagnostics API, and i'm returning things to that state.
2015-06-18 09:32:52 -07:00
Colby Russell
5f1fe3740b Fix line endings in program.ts 2015-06-17 13:08:13 -05:00
Daniel Rosenwasser
1f4812f9dd Merge branch 'testPerf2' into testPerf
Conflicts:
	src/compiler/program.ts
	src/compiler/types.ts
	src/harness/harness.ts
2015-06-12 16:39:03 -07:00
Daniel Rosenwasser
e1c1da578c Merge branch 'master' into testPerf2
Conflicts:
	Jakefile.js
	src/compiler/program.ts
	src/compiler/types.ts
	src/harness/harness.ts
	src/harness/projectsRunner.ts
	src/harness/runner.ts
2015-06-12 16:16:09 -07:00
Vladimir Matveev
97afc1d410 Merge pull request #3484 from Microsoft/noExtension_noExtraErrors
do not report extra error if file was already found without extension
2015-06-12 13:38:49 -07:00
Cyrus Najmabadi
5b7ca78c92 PR feedback. 2015-06-12 12:53:24 -07:00
Cyrus Najmabadi
c27b3d37da Merge branch 'master' into classificationPerf2 2015-06-12 12:30:48 -07:00
Mohamed Hegazy
224e7630ea use namespaces instead of modules in the codebase 2015-06-12 09:01:48 -07:00
Vladimir Matveev
970dc49a2d do not report extra error if file was already found without extension 2015-06-11 14:43:57 -07:00
Cyrus Najmabadi
9560895ec2 Don't bother trying to semantically classify names that could never be typenames. 2015-06-10 18:18:37 -07:00
Daniel Rosenwasser
50c4290da6 Merge branch 'master' into testPerf
Conflicts:
	Jakefile.js
	src/compiler/program.ts
	src/compiler/types.ts
	src/harness/harness.ts
	src/harness/projectsRunner.ts
	src/harness/runner.ts
2015-06-08 14:45:38 -07:00
Vladimir Matveev
6658e0fc58 wrap host.getCanonicalFileName in arrow function 2015-06-05 12:00:53 -07:00
Cyrus Najmabadi
2de07f3563 Merge branch 'master' into lightMode
Conflicts:
	src/compiler/program.ts
2015-06-04 12:47:12 -07:00
Cyrus Najmabadi
a9e2089818 PR feedback. 2015-06-04 12:24:07 -07:00
Cyrus Najmabadi
2bf19e80c3 Speed up tests by not type-checking lib.d.ts unless the test asks for that. 2015-06-04 01:03:02 -07:00