checker: improve array errors; gg: remove unused imports
parent
bb93bf34ec
commit
9800cf1e7b
|
@ -3,7 +3,6 @@
|
|||
module gg
|
||||
|
||||
import gx
|
||||
import os
|
||||
import sokol
|
||||
import sokol.sapp
|
||||
import sokol.sgl
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
// Use of this source code is governed by an MIT license that can be found in the LICENSE file.
|
||||
module gg
|
||||
|
||||
import gx
|
||||
//import gx
|
||||
import os
|
||||
import sokol
|
||||
import sokol.sapp
|
||||
//import sokol.sapp
|
||||
import sokol.sgl
|
||||
import sokol.gfx
|
||||
//import sokol.gfx
|
||||
import stbi
|
||||
|
||||
pub struct Image {
|
||||
|
|
|
@ -3237,7 +3237,8 @@ pub fn (mut c Checker) error(message string, pos token.Position) {
|
|||
if c.pref.is_verbose {
|
||||
print_backtrace()
|
||||
}
|
||||
c.warn_or_error(message, pos, false)
|
||||
msg := message.replace('`array_', '`[]')
|
||||
c.warn_or_error(msg, pos, false)
|
||||
}
|
||||
|
||||
fn (mut c Checker) warn_or_error(message string, pos token.Position, warn bool) {
|
||||
|
|
Loading…
Reference in New Issue