Commit Graph

4491 Commits

Author SHA1 Message Date
Dick van den Brink
c0db7ffe8f Added valueOf definitions for String and Number 2015-03-08 18:08:49 +01:00
steveluc
360e47880e Addressed comments on code style and organization. 2015-03-07 23:19:58 -08:00
Bill Ticehurst
24141f05db Merge pull request #2245 from billti/ExportVersion
Made the 'version' string an exported property
2015-03-07 21:40:32 -08:00
Bill Ticehurst
a6816fc128 Added description to version exports 2015-03-07 20:12:16 -08:00
steveluc
865802a63c Added new logger methods to test harness. 2015-03-07 17:46:56 -08:00
steveluc
9a45160ab6 Changed TypeScript server logging to use an environment variable TSS_LOG
as follows.  If TSS_LOG is not set, no logging will occur.  If TSS_LOG
is set to any value, logging will occur as before this change (log file
will be in directory of tsserver.js with name .logPID where PID is the
process id of the server process; log will contain the pre-change
messages).  If TSS_LOG is set to a string that has the form "-file
fileName", the log file will be in the tsserver.js directory with name
'fileName'.  If TSS_LOG is set to a string that has the form "-level
levelName", then the level of logging will be set to 'levelName'.
Currently the two levels are 'normal' and 'verbose'.  The TSS_LOG string
can contain zero, one or both of its options as in "-file LOG -level
verbose".  At the verbose level, the server will log every request,
response and event, and will also give elapsed time for message processing.
2015-03-07 17:13:52 -08:00
steveluc
8bef6d7ebc Added additional cases for format on enter. These cases fix bugs in the
orginal format on enter (which wasn't distinguishing whether there was
existing whitespace to start some types of lines).
2015-03-07 15:44:21 -08:00
Cyrus Najmabadi
7570aaac65 Merge branch 'master' into returnStatus 2015-03-07 13:51:44 -08:00
Cyrus Najmabadi
21627384a8 Merge branch 'master' into propertyAccessEmit 2015-03-07 13:51:10 -08:00
Cyrus Najmabadi
2a990a8685 Preserve newlines for conditional expressions 2015-03-07 13:50:26 -08:00
Cyrus Najmabadi
dddc4660a1 Simplify code to emit indent code. 2015-03-07 13:33:02 -08:00
Cyrus Najmabadi
680e48f507 Preserve newlines on either side of a binary expression. 2015-03-07 12:54:12 -08:00
Cyrus Najmabadi
a18934d6da Address omitted return keyword. 2015-03-07 12:27:20 -08:00
Cyrus Najmabadi
bdcdd84dda CR feedback. 2015-03-07 02:08:36 -08:00
Cyrus Najmabadi
0c5654164f Fix up comment. 2015-03-07 01:33:18 -08:00
Cyrus Najmabadi
c76f71cfae When emitting an arrow function, parenthesize the body if it could be interpreted as a block instead of an object literal. 2015-03-07 01:30:45 -08:00
Cyrus Najmabadi
7f00378eef CR feedback. 2015-03-06 18:51:58 -08:00
Cyrus Najmabadi
a76eb69996 Add an 'isVariableLike' helper function. 2015-03-06 18:45:45 -08:00
Anders Hejlsberg
5c56684187 Merge branch 'master' into exportDefault
Conflicts:
	tests/baselines/reference/exportAssignDottedName.errors.txt
2015-03-06 17:20:44 -08:00
Bill Ticehurst
da5caf5f72 Made the 'version' string an exported property 2015-03-06 17:09:55 -08:00
Paul van Brenk
af41be88a1 Merge pull request #2236 from Microsoft/signatureHelp
Signature help diagnostics
2015-03-06 15:31:20 -08:00
Mohamed Hegazy
59c3a7d71e Merge pull request #2235 from DickvdBrink/letConstInCatchclause
Let const in catchclause
2015-03-06 15:21:11 -08:00
Paul van Brenk
80f9cf299c fix check to allow for empty argument list 2015-03-06 15:09:19 -08:00
Bill Ticehurst
0ea31c37b5 Merge pull request #2222 from billti/tsconfigWatchFix
Fix watch to honor tsconfig.json setting
2015-03-06 14:44:44 -08:00
Paul van Brenk
8083bbf18f Merge branch 'master' into signatureHelp 2015-03-06 14:30:21 -08:00
Paul van Brenk
e9cb12aeab Add diagnostics for signaturehelp crash 2015-03-06 14:29:23 -08:00
unknown
129ef7222c Use hasProperty instead 2015-03-06 22:56:59 +01:00
unknown
b4d723217e Error on redeclaring a variable with let/const already defined as catch parameter 2015-03-06 21:42:42 +01:00
unknown
5ca703eeb4 Add new diagnostics message for let/const declarations in a catch clause 2015-03-06 20:53:15 +01:00
Bill Ticehurst
ee912ee1cd Fix path normalization for patterns such as './/tsconfig.json' 2015-03-05 23:53:16 -08:00
Bill Ticehurst
02eb7466a7 Fix watch to honor tsconfig.json setting 2015-03-05 23:32:54 -08:00
Jason Freeman
fecd20a3db Fix sourcemaps for 'for...of' and no source maps for synthesized nodes 2015-03-05 11:47:40 -08:00
Cyrus Najmabadi
62d304b069 Preserve newlines for property access expressions on multiple lines. 2015-03-05 02:31:55 -08:00
Jason Freeman
ed3ab96eed Add tests for destructuring 'for...of' 2015-03-04 19:35:13 -08:00
Jason Freeman
905f35091f Do not create a temp for RHS if it's an identifier 2015-03-04 19:35:10 -08:00
Jason Freeman
4bb0587dd4 Fix createTempVariable to always record the name in the currentScopeNames 2015-03-04 19:35:06 -08:00
Jason Freeman
4d3265088b Revert change to createTempVariable 2015-03-04 19:35:03 -08:00
Jason Freeman
a99449a1ef Support destructuring in 'for...of' loops 2015-03-04 19:34:56 -08:00
Jason Freeman
a0f108c4fb Emit 'for...of' statements with let/const initializers 2015-03-04 19:34:53 -08:00
Jason Freeman
f915efa6d7 Emit for...of when LHS is expression 2015-03-04 19:34:49 -08:00
Jason Freeman
9b76a0298b Remove tempCount 2015-03-04 19:34:46 -08:00
Jason Freeman
76e9b6ab0e Make createTempVariable call into generateUniqueNameForLocation 2015-03-04 19:34:36 -08:00
Jason Freeman
e417e1dacc Emit 'for...of' loop when LHS is a var 2015-03-04 19:34:33 -08:00
Cyrus Najmabadi
d367c96df6 CR feedback. 2015-03-04 18:37:50 -08:00
Cyrus Najmabadi
d3fbebf3fb Never use the entire span of a function declaration or function expression when reporting a checker error. 2015-03-04 18:15:55 -08:00
Anders Hejlsberg
981ef7f0eb Excluding "default" member from "export *" per ES6 specification 2015-03-04 14:53:44 -08:00
Anders Hejlsberg
a87c45711f Renaming SymbolFlags.Import to SymbolFlags.Alias 2015-03-04 10:26:38 -08:00
Vladimir Matveev
8d089afb34 enum cleanup: apply constant folding to all enum initializers, inline accesses only for const enums 2015-03-04 08:17:18 -08:00
Anders Hejlsberg
bb33c150dc Fixing error reporting issue in checkExternalModuleExports 2015-03-04 06:52:18 -08:00
Anders Hejlsberg
91e8b821ad Merge branch 'master' into exportDefault
Conflicts:
	src/compiler/checker.ts
	tests/baselines/reference/contextualTyping.js.map
	tests/baselines/reference/contextualTyping.sourcemap.txt
	tests/baselines/reference/out-flag.js.map
	tests/baselines/reference/properties.js.map
	tests/baselines/reference/recursiveClassReferenceTest.js.map
	tests/baselines/reference/sourceMap-FileWithComments.js.map
	tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt
	tests/baselines/reference/typeResolution.js.map
2015-03-04 06:39:10 -08:00