ast: fix C error for scope's .str() method (#7561)
							parent
							
								
									9b19388402
								
							
						
					
					
						commit
						e9affe33ce
					
				|  | @ -181,7 +181,7 @@ fn (s &Scope) contains(pos int) bool { | |||
| 	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 indent := '' | ||||
| 	for _ in 0 .. depth * 4 { | ||||
|  | @ -206,6 +206,6 @@ pub fn (sc &Scope) show(depth int, max_depth int) string { | |||
| 	return out | ||||
| } | ||||
| 
 | ||||
| pub fn (sc &Scope) str() string { | ||||
| pub fn (sc Scope) str() string { | ||||
| 	return sc.show(0, 0) | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue