@@ -64,7 +64,9 @@ export function inferTypeInfo(): TransformVisitor {
6464
6565 function ctx < C extends CExpr > ( cb : ( tnode : C , ivisit : Visit ) => C ) {
6666 return function enter ( node : C , visit : Visit ) : C {
67- if ( ! node . context ) return cb ( node , visit )
67+ if ( ! node . context ) {
68+ return cb ( node , visit )
69+ }
6870 const context = visit ( node . context )
6971 const itemContext : any = {
7072 ...context ,
@@ -133,7 +135,9 @@ export function inferTypeInfo(): TransformVisitor {
133135 enter : ctx ( ( node , visit ) => {
134136 const xnode = trace . SliceExpr . enter ( node , visit )
135137 let typeInfo : TypeInfo = { type : Type . Value }
136- if ( optional ) typeInfo = { type : Type . Maybe , option : typeInfo }
138+ if ( optional ) {
139+ typeInfo = { type : Type . Maybe , option : typeInfo }
140+ }
137141 return { ...xnode , typeInfo }
138142 } ) ,
139143 } ,
@@ -189,7 +193,9 @@ export function inferTypeInfo(): TransformVisitor {
189193 ObjectLiteralExpr : {
190194 enter : ctx ( ( node , visit ) => {
191195 const xnode = trace . ObjectLiteralExpr . enter ( node , child => {
192- if ( child === node . context ) return visit ( child )
196+ if ( child === node . context ) {
197+ return visit ( child )
198+ }
193199 const entry = node . entries . find ( e => e . value === child )
194200 invariant (
195201 entry ,
0 commit comments