Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit360cfe1

Browse files
authored
Reason_comment: add interface file and remove dead code (#2888)
1 parent83b75b6 commit360cfe1

File tree

2 files changed

+16
-21
lines changed

2 files changed

+16
-21
lines changed

‎src/reason-parser/reason_comment.ml‎

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ type category =
33
|SingleLine
44
|Regular
55

6-
letstring_of_category=function
7-
|Regular ->"Regular"
8-
|EndOfLine ->"End of Line"
9-
|SingleLine ->"SingleLine"
10-
116
typet=
127
{location :Location.t
138
;category :category
@@ -17,21 +12,6 @@ type t =
1712
letcategoryt= t.category
1813
letlocationt= t.location
1914

20-
letdumpppft=
21-
Format.fprintf
22-
ppf
23-
"%d (%d:%d)-%d (%d:%d) -- %s:||%s||"
24-
t.location.loc_start.pos_cnum
25-
t.location.loc_start.pos_lnum
26-
(t.location.loc_start.pos_cnum- t.location.loc_start.pos_bol)
27-
t.location.loc_end.pos_cnum
28-
t.location.loc_end.pos_lnum
29-
(t.location.loc_end.pos_cnum- t.location.loc_end.pos_bol)
30-
(string_of_category t.category)
31-
t.text
32-
33-
letdump_listppflist=List.iter~f:(Format.fprintf ppf"%a\n" dump)list
34-
3515
letwrapt=
3616
match t.textwith
3717
|""|"*" ->"/***/"
@@ -54,7 +34,6 @@ let wrap t =
5434
"/**"^ txt^"*/"
5535
|txt ->"/*"^ txt^"*/"
5636

57-
letis_doct=String.length t.text>0&& t.text.[0]=='*'
5837
letmake~locationcategorytext= { text; category; location }
5938

6039
letisLineComment{ category; text; _ }=
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
typecategory=
2+
|EndOfLine
3+
|SingleLine
4+
|Regular
5+
6+
typet=
7+
{location :Location.t
8+
;category :category
9+
;text :string
10+
}
11+
12+
valcategory :t ->category
13+
vallocation :t ->Location.t
14+
valwrap :t ->string
15+
valmake :location:Location.t->category ->string ->t
16+
valisLineComment :t ->bool

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp