Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 8, 2025
1 parent 9e50472 commit b42f8e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tools/vvet/analyze.v
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ fn (mut vt VetAnalyze) expr(vet &Vet, expr ast.Expr) {
}
ast.SelectorExpr {
// nested selectors
if expr.expr is ast.SelectorExpr {
vt.save_expr(selectorexpr_cutoff, '${ast.Expr(expr.expr).str()}.${expr.field_name}',
if expr.expr !is ast.Ident {
vt.save_expr(selectorexpr_cutoff, '${expr.expr.str()}.${expr.field_name}',
vet.file, expr.pos)
}
}
Expand Down

0 comments on commit b42f8e7

Please sign in to comment.