@@ -275,7 +275,7 @@ proc unpackObject(conf: ConfigRef, x: pointer, typ: PType, n: PNode): PNode =
275275 # the nkPar node:
276276 if n.isNil:
277277 result = newNode (nkTupleConstr)
278- result .typ () = typ
278+ result .typ = typ
279279 if typ.n.isNil:
280280 internalError (conf, " cannot unpack unnamed tuple" )
281281 unpackObjectAdd (conf, x, typ.n, result )
@@ -298,7 +298,7 @@ proc unpackObject(conf: ConfigRef, x: pointer, typ: PType, n: PNode): PNode =
298298proc unpackArray (conf: ConfigRef , x: pointer , typ: PType , n: PNode ): PNode =
299299 if n.isNil:
300300 result = newNode (nkBracket)
301- result .typ () = typ
301+ result .typ = typ
302302 newSeq (result .sons, lengthOrd (conf, typ).toInt)
303303 else :
304304 result = n
@@ -319,7 +319,7 @@ proc unpack(conf: ConfigRef, x: pointer, typ: PType, n: PNode): PNode =
319319 template aw (k, v, field: untyped ): untyped =
320320 if n.isNil:
321321 result = newNode (k)
322- result .typ () = typ
322+ result .typ = typ
323323 else :
324324 # check we have the right field:
325325 result = n
@@ -333,12 +333,12 @@ proc unpack(conf: ConfigRef, x: pointer, typ: PType, n: PNode): PNode =
333333 template setNil () =
334334 if n.isNil:
335335 result = newNode (nkNilLit)
336- result .typ () = typ
336+ result .typ = typ
337337 else :
338338 reset n[]
339339 result = n
340340 result [] = TNode (kind: nkNilLit)
341- result .typ () = typ
341+ result .typ = typ
342342
343343 template awi (kind, v: untyped ): untyped = aw (kind, v, intVal)
344344 template awf (kind, v: untyped ): untyped = aw (kind, v, floatVal)
@@ -427,7 +427,7 @@ proc fficast*(conf: ConfigRef, x: PNode, destTyp: PType): PNode =
427427 # cast through a pointer needs a new inner object:
428428 let y = if x.kind == nkRefTy: newNodeI (nkRefTy, x.info, 1 )
429429 else : x.copyTree
430- y.typ () = x.typ
430+ y.typ = x.typ
431431 result = unpack (conf, a, destTyp, y)
432432 dealloc a
433433
@@ -481,7 +481,7 @@ proc callForeignFunction*(conf: ConfigRef, fn: PNode, fntyp: PType,
481481 if aTyp.isNil:
482482 internalAssert conf, i+ 1 < fntyp.len
483483 aTyp = fntyp[i+ 1 ]
484- args[i+ start].typ () = aTyp
484+ args[i+ start].typ = aTyp
485485 sig[i] = mapType (conf, aTyp)
486486 if sig[i].isNil: globalError (conf, info, " cannot map FFI type" )
487487
0 commit comments