@@ -115,7 +115,7 @@ class WatBuilder(using TraceLogger, State) extends CodeBuilder:
115115 )
116116 case r => result(r)
117117
118- def fieldSelect (thisSym : BlockMemberSymbol , sym : DefinitionSymbol [ ? ] )(using Ctx , Raise ): FieldIdx =
118+ def fieldSelect (thisSym : BlockMemberSymbol , sym : FieldSymbol )(using Ctx , Raise ): FieldIdx =
119119 val structInfo = ctx.getTypeInfo_!(thisSym)
120120 val symToField = structInfo.compType match
121121 case ty : StructType => ty.fields
@@ -150,13 +150,13 @@ class WatBuilder(using TraceLogger, State) extends CodeBuilder:
150150 ref.i31(i32.const(if value then 1 else 0 ))
151151 case Value .Lit (IntLit (value)) =>
152152 ref.i31(i32.const(value.toInt))
153- case Value .Ref (l, _ ) =>
153+ case Value .Ref (l) =>
154154 ctx.getFunc(l) match
155155 case S (funcIdx) =>
156156 ref.func(funcIdx, RefType (ctx.getFuncInfo_!(l).typeIdx, nullable = false ))
157157 case N => getVar(l, r.toLoc)
158158
159- case Call (Value .Ref (l : BuiltinSymbol , _ ), lhs :: rhs :: Nil ) if ! l.functionLike =>
159+ case Call (Value .Ref (l : BuiltinSymbol ), lhs :: rhs :: Nil ) if ! l.functionLike =>
160160 if l.binary then
161161 l.nme match
162162 case " +" =>
@@ -231,7 +231,7 @@ class WatBuilder(using TraceLogger, State) extends CodeBuilder:
231231
232232 case sel @ Select (qual, id) =>
233233 val qualRes = result(qual)
234- val selSym = sel.symbol_SelectSymbol getOrElse :
234+ val selSym = sel.symbol getOrElse :
235235 lastWords(s " Symbol for Select(...) expression must be resolved " )
236236 val selTrmSym = selSym match
237237 case termSym : TermSymbol => termSym
@@ -260,7 +260,7 @@ class WatBuilder(using TraceLogger, State) extends CodeBuilder:
260260 ),
261261 extraInfo = S (s " Block IR of `cls` expression: ${cls.toString}" )
262262 )
263- val ctorClsSym = ctorClsPath.symbol_SelectSymbol match
263+ val ctorClsSym = ctorClsPath.symbol match
264264 case S (sym) => sym
265265 case N => return errExpr(
266266 Ls (
0 commit comments