mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
markused: fix v -skip-unused cmd/tools/vpm.v
regression after 98b2bdb
This commit is contained in:
parent
735c961682
commit
5dd3864617
@ -259,13 +259,11 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []&ast.F
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
for itype in interface_info.types {
|
for itype in interface_info.types {
|
||||||
pitype := itype.set_nr_muls(1)
|
ptype := itype.set_nr_muls(1)
|
||||||
mut itypes := [itype]
|
ntype := itype.set_nr_muls(0)
|
||||||
if pitype != itype {
|
interface_types := [ptype, ntype]
|
||||||
itypes << pitype
|
|
||||||
}
|
|
||||||
for method in interface_info.methods {
|
for method in interface_info.methods {
|
||||||
for typ in itypes {
|
for typ in interface_types {
|
||||||
interface_implementation_method_name := '${int(typ)}.$method.name'
|
interface_implementation_method_name := '${int(typ)}.$method.name'
|
||||||
$if trace_skip_unused_interface_methods ? {
|
$if trace_skip_unused_interface_methods ? {
|
||||||
eprintln('>> isym.name: $isym.name | interface_implementation_method_name: $interface_implementation_method_name')
|
eprintln('>> isym.name: $isym.name | interface_implementation_method_name: $interface_implementation_method_name')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user