the identifier “x” is not declared in the current scope

(Sorry if i have spelling mistakes i am Bulgarian) I have the problem that my “icon” isn’t declared in the current scope. i am trying to add an object (body, collisionshape, and a sprite) this is the code:

var stastic_body =; var sprite =; var collision_shape =; stastic_body.add_child(collision_shape); sprite.texture = icon.png