File: getOutliningForSingleLineComments.ts

package info (click to toggle)
node-typescript 4.8.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 523,068 kB
  • sloc: javascript: 1,735,777; makefile: 7; sh: 1
file content (90 lines) | stat: -rw-r--r-- 1,682 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/// <reference path="fourslash.ts"/>

////[|// Single line comments at the start of the file
////// line 2
////// line 3
////// line 4|]
////module Sayings[| {
////
////    [|/*
////    */|]
////    [|// A sequence of
////    // single line|]
////    [|/*
////        and block
////    */|]
////    [|// comments
////    //|]
////    export class Sample[| {
////    }|]
////}|]
////
////interface IFoo[| {
////    [|// all consecutive single line comments should be in one block regardless of their number or empty lines/spaces inbetween
////
////    // comment 2
////    // comment 3
////
////    //comment 4
////    /// comment 5
////    ///// comment 6
////
////    //comment 7
////    ///comment 8
////    // comment 9
////    // //comment 10
////
////
////
////
////
////
////
////
////
////
////
////
////
////
////
////
////
////
////
////
////    // // //comment 11
////    // comment 12
////    // comment 13
////    // comment 14
////    // comment 15
////
////    // comment 16
////    // comment 17
////    // comment 18
////    // comment 19
////    // comment 20    
////    // comment 21|]
////
////    getDist(): number; // One single line comment should not be collapsed
////}|]
////
////// One single line comment should not be collapsed
////class WithOneSingleLineComment[| {
////}|]
////
////function Foo()[| {
////   [|// comment 1
////     // comment 2|]
////    this.method = function (param)[| {
////    }|]
////
////   [|// comment 1
////     // comment 2|]
////    function method(param)[| {
////    }|]
////}|]

verify.outliningSpansInCurrentFile(test.ranges());