(name string, typ ast.Expr, value ast.Expr, vindex int, scope *scope)
| 324 | } |
| 325 | |
| 326 | func new_decl_var(name string, typ ast.Expr, value ast.Expr, vindex int, scope *scope) *decl { |
| 327 | if name == "_" { |
| 328 | return nil |
| 329 | } |
| 330 | decl := new(decl) |
| 331 | decl.name = name |
| 332 | decl.class = decl_var |
| 333 | decl.typ = typ |
| 334 | decl.value = value |
| 335 | decl.value_index = vindex |
| 336 | decl.scope = scope |
| 337 | return decl |
| 338 | } |
| 339 | |
| 340 | func method_of(d ast.Decl) string { |
| 341 | if t, ok := d.(*ast.FuncDecl); ok { |
no outgoing calls
no test coverage detected