mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ast: fix C error for scope's .str() method (#7561)
This commit is contained in:
parent
9b19388402
commit
e9affe33ce
@ -181,7 +181,7 @@ fn (s &Scope) contains(pos int) bool {
|
|||||||
return pos >= s.start_pos && pos <= s.end_pos
|
return pos >= s.start_pos && pos <= s.end_pos
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (sc &Scope) show(depth int, max_depth int) string {
|
pub fn (sc Scope) show(depth int, max_depth int) string {
|
||||||
mut out := ''
|
mut out := ''
|
||||||
mut indent := ''
|
mut indent := ''
|
||||||
for _ in 0 .. depth * 4 {
|
for _ in 0 .. depth * 4 {
|
||||||
@ -206,6 +206,6 @@ pub fn (sc &Scope) show(depth int, max_depth int) string {
|
|||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (sc &Scope) str() string {
|
pub fn (sc Scope) str() string {
|
||||||
return sc.show(0, 0)
|
return sc.show(0, 0)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user