fixes nim-lang/nimsuggest#103 con dot exprs (#16657)
- con calls for dot exprs now returns results - discovered an issue with dot expr results -- documented
This commit is contained in:
parent
e5ea3f0cce
commit
bb3c6d0797
2 changed files with 33 additions and 2 deletions
|
|
@ -298,6 +298,7 @@ proc suggestObject(c: PContext, n, f: PNode; info: TLineInfo, outputs: var Sugge
|
|||
proc nameFits(c: PContext, s: PSym, n: PNode): bool =
|
||||
var op = if n.kind in nkCallKinds: n[0] else: n
|
||||
if op.kind in {nkOpenSymChoice, nkClosedSymChoice}: op = op[0]
|
||||
if op.kind == nkDotExpr: op = op[1]
|
||||
var opr: PIdent
|
||||
case op.kind
|
||||
of nkSym: opr = op.sym.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue