Commit graph

22 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
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
Sheetal Nandi
ecaf4ad221 Baselines update after comment formatting pull request (#455) was merged 2014-08-18 13:44:18 -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
Sheetal Nandi
94e0d953c5 Makes sure leading comments are emitting only once 2014-08-15 15:52:30 -07:00
Sheetal Nandi
c4b22d338f Emit comments for expression statements 2014-08-15 15:49:09 -07:00
Sheetal Nandi
6ab3adfd43 Modified the emitComment logic to handle emitting leading or trailing spaces depending on flags
Leading comments have trailing separator while trailing comments have leading space
This removes the extra trailing space in the trailing comments
2014-08-15 14:32:08 -07:00
Sheetal Nandi
45e8ff8467 Emit the new line before leading declaration comments in the declaration file if source code had it 2014-08-15 14:21:41 -07:00
Sheetal Nandi
d8e11e7d25 Test cases for trailing comments for functions and methods 2014-08-15 13:40:48 -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
29dcc5ba41 Start leading comments on new line if the comment starts on different line as node 2014-08-15 12:17:36 -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
c949543f49 Fix the indent for the parameter and typeparameter emit in .d.ts file 2014-08-14 09:38:22 -07:00
Sheetal Nandi
b8bbb0d547 Declaration comments for parameters in .d.ts file 2014-08-14 09:35:58 -07:00
Sheetal Nandi
d970c89856 Declaration comments for function declarations in .d.ts 2014-08-14 09:08:53 -07:00
Sheetal Nandi
83ea28cf39 Declaration comments for the variable declaration in .d.ts 2014-08-14 08:57:28 -07:00
Sheetal Nandi
86c2f2c444 Emit comments for function and method declarations 2014-08-14 06:21:30 -07:00
Sheetal Nandi
871507e386 Emit leading and trailing comments for parameter 2014-08-14 05:47:38 -07:00
Sheetal Nandi
3e95358486 Emit comments in the javascript code if --removecomments is not specified 2014-08-14 05:41:04 -07:00
Sheetal Nandi
574c075dba Emit the types in declaration file 2014-07-15 13:08:10 -07:00
Sheetal Nandi
ea7c23eb63 Emit global context declarations into the declaration file 2014-07-15 08:57:12 -07:00
Mohamed Hegazy
214df64e28 Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00