File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,20 @@ Cleaning... 6 files.
109109Cleaning... 87 files.
110110[1/5] [34mBuilding[39m [2msrc/TestFramework.reiast[22m
111111[2/5] [34mBuilding[39m [2msrc/TestFramework.reast[22m
112+ [3/5] Building src/test.resast
113+ FAILED: src/test.resast
114+ /Users/chenglou/github/bucklescript/darwin/bsc.exe -bs-jsx 3 -bs-no-version-header -o src/test.resast -bs-syntax-only -bs-binary-ast /Users/chenglou/github/reason-react/src/test.res
115+
116+ Syntax error!
117+ /Users/chenglou/github/reason-react/src/test.res 1:8-2:3
118+
119+ 1 │ let a =
120+ 2 │ let b =
121+ 3 │
122+
123+ This let-binding misses an expression
124+
125+ [8/29] Building src/legacy/ReactDOMServerRe.reast
112126FAILED: src/test.cmj src/test.cmi
113127
114128 Warning number 8
@@ -143,17 +157,20 @@ FAILED: src/test.cmj src/test.cmi
143157 // we're gonna chop that
144158 let res : string [ ] [ ] = [ ] ;
145159 let lines = content . split ( '\n' ) ;
146- lines . forEach ( line => {
160+ for ( let i = 0 ; i < lines . length ; i ++ ) {
161+ let line = lines [ i ] ;
147162 if ( line . startsWith ( ' We\'ve found a bug for you!' ) ) {
148163 res . push ( [ ] )
149164 } else if ( line . startsWith ( ' Warning number ' ) ) {
150165 res . push ( [ ] )
166+ } else if ( line . startsWith ( ' Syntax error!' ) ) {
167+ res . push ( [ ] )
151168 } else if ( / ^ [ 0 - 9 ] + / . test ( line ) ) {
152169 // code display. Swallow
153170 } else if ( line . startsWith ( ' ' ) ) {
154171 res [ res . length - 1 ] . push ( line )
155172 }
156- } )
173+ }
157174
158175 // map of file path to list of diagnosis
159176 let ret : { [ key : string ] : diagnosis [ ] } = { }
You can’t perform that action at this time.
0 commit comments