Commit graph

144 commits

Author SHA1 Message Date
Sheetal Nandi
45e76e2bd2 Emit leading comments for '}' of the function block
Fixes #503
2014-08-21 17:17:02 -07:00
Sheetal Nandi
d2ae999a48 Enable test case for declaration emit for multiple file emit scenario 2014-08-21 16:15:30 -07:00
Sheetal Nandi
3e2de14933 Emit new lines between source files emit so that the file contents always start on new line
Fixes #500
2014-08-21 13:44:26 -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
Sheetal Nandi
8ad66bb6c6 Compiler test case for commit 0636a06 2014-08-20 16:18:40 -07:00
Sheetal Nandi
b5bd1bf505 Emit detached comments for constructor body 2014-08-19 12:38:56 -07:00
Sheetal Nandi
ebd00bd1bc Emit detached comments for function body 2014-08-19 12:06:52 -07:00
Sheetal Nandi
ce89da227d Include previous token trailing comments for parameters and type parameters as part of leading comments of them 2014-08-19 10:00:38 -07:00
Jason Freeman
f949c5014a Merge branch 'master' into typeWriter
Conflicts:
	src/compiler/types.ts
2014-08-18 19:57:35 -07:00
Jason Freeman
d02d9bfa7e Merge branch 'master' into typeWriter
Conflicts:
	src/compiler/checker.ts
2014-08-18 14:37:21 -07:00
Mohamed Hegazy
54d8722189 Merge branch 'master' into classifier 2014-08-18 14:33:30 -07:00
Sheetal Nandi
e0faa65d4b Merge pull request #455 from Microsoft/formatComment
Align the multiline comments in the generated outputs by retaining its position relative to the first line in the comment
2014-08-18 13:26:18 -07:00
Adam Freidin
d43f28d3a0 baseline for typechecking --declaration 2014-08-15 21:15:41 -07:00
Sheetal Nandi
c4b22d338f Emit comments for expression statements 2014-08-15 15:49:09 -07:00
Jason Freeman
971a4c55d4 Remove problematic test (should be added back after issue #463 is fixed) 2014-08-15 14:37:38 -07:00
Jason Freeman
8d13a65d8b Fix test chainedImportAlias to use all of its file regions 2014-08-15 14:37:36 -07:00
Sheetal Nandi
bb638db18d Test cases for trailing comments for import declaration 2014-08-15 13:57:55 -07:00
Sheetal Nandi
720fae1699 Test cases for trailing comments for modules 2014-08-15 13:53:39 -07:00
Sheetal Nandi
4983252056 Test case for trailing comment of enum 2014-08-15 13:50:47 -07:00
Sheetal Nandi
a9092c331d Test cases for trailing comments for class and constructor 2014-08-15 13:49:05 -07:00
Sheetal Nandi
f1df7589ff Test cases for trailing comments for properties 2014-08-15 13:46:20 -07:00
Sheetal Nandi
d8e11e7d25 Test cases for trailing comments for functions and methods 2014-08-15 13:40:48 -07:00
Sheetal Nandi
f2620a4c3d Test cases for trailing comments of accessors 2014-08-15 13:33:24 -07:00
Sheetal Nandi
48c3abd445 Test cases for trailing comments of object literal 2014-08-15 13:30:26 -07:00
Sheetal Nandi
3dd21fc3a7 Trailing comment tests for parameters, fixes the trailing // comments and parameter indentation 2014-08-15 13:18:54 -07:00
Sheetal Nandi
1b64519d52 Tailing Comments for var declarations 2014-08-15 12:44:31 -07:00
Sheetal Nandi
e76d8f36b6 Align the multiline comments in the generated outputs by retaining its position relative to the first line in the comment 2014-08-14 14:43:28 -07:00
Sheetal Nandi
a828507e4e Declaration comments for the type parameter declaration in .d.ts 2014-08-14 08:23:42 -07:00
Sheetal Nandi
5accc9962a Write JsDoc comments for ImportDeclaration in .d.ts file 2014-08-14 07:48:14 -07:00
Sheetal Nandi
f622cb4d11 Merge pull request #381 from branch 'remote/privacyErrors'
Report privacy errors on variable/property declarations and also emit import declarations that get used to defined visible type
2014-08-13 18:48:05 -07:00
Mohamed Hegazy
85b53c74d1 Merge branch 'master' into classifier 2014-08-12 21:43:38 -07:00
Mohamed Hegazy
2a106bf923 Merge pull request #427 from sparecycles/fix/reference-static-regex
fix: /// <reference path="..." static='true' />
2014-08-12 17:46:06 -07:00
Mohamed Hegazy
a8df9c1586 update test 2014-08-12 17:43:15 -07:00
Mohamed Hegazy
c16d0df7b2 Disable test as it needs resolution which the test harness does not support yet 2014-08-12 17:43:02 -07:00
Vladimir Matveev
ccaf904cfa support outlining for arbitrary blocks 2014-08-12 15:47:57 -07:00
Vladimir Matveev
551a532f5d Merge pull request #430 from Microsoft/outlining
enable outlining atop of new compiler
2014-08-12 11:59:14 -07:00
Adam Freidin
5e2316d642 added tests for <reference path="" static='' /> 2014-08-11 16:34:31 -07:00
Mohamed Hegazy
349367d991 Consolidate logic to use the lib in one location in the tests 2014-08-11 15:35:15 -07:00
Sheetal Nandi
98f631e23f Make changes to report error if the type used from external module cannot be named
Adds test cases too
2014-08-11 14:15:57 -07:00
Vladimir Matveev
785c083888 enable outlining atop of new compiler 2014-08-11 13:15:07 -07:00
Sheetal Nandi
e27e6b2bbb During qualification if we are looking in value space, the left qualifier meaning is also value 2014-08-08 17:07:00 -07:00
Mohamed Hegazy
be47b94c8f clean up tests 2014-08-08 16:45:10 -07:00
Mohamed Hegazy
17c45ed986 revert changes to classify a keyword as an identifier if the last token is keyword 2014-08-08 16:43:31 -07:00
Sheetal Nandi
09ea12d95c Use typeof function in the declaration emitter instead of unwinding first level 2014-08-08 16:15:09 -07:00
Mohamed Hegazy
ad9a87dfb6 Add some huristic optimization to not colorize a keyword if precceded by a dot or a keyword. this should handel cases for "a.var" or "module string { }" 2014-08-08 10:37:10 -07:00
Mohamed Hegazy
bae6ddd1b5 add unterminated multiline comment classification tests 2014-08-07 23:51:15 -07:00
Mohamed Hegazy
38cacc967f Enable unit tests for DocumentRegistry 2014-08-07 23:45:43 -07:00
Mohamed Hegazy
d502ae20e5 move formatting unit tests to a diffrent folder 2014-08-07 23:45:23 -07:00
Mohamed Hegazy
05d2e75e7c delete unused tests 2014-08-07 23:45:13 -07:00
Mohamed Hegazy
3fcd33ec32 Enable clorizer unit tests 2014-08-07 23:45:03 -07:00