Autocompletion: Don't call const functions
This commit is contained in:
parent
2d113cc224
commit
97b1bc6bda
8 changed files with 198 additions and 153 deletions
|
|
@ -1,12 +0,0 @@
|
|||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a()"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
[output]
|
||||
include=[
|
||||
; String
|
||||
{"display": "begins_with(…)"},
|
||||
]
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
extends Node
|
||||
|
||||
var s
|
||||
|
||||
func test():
|
||||
var t = String(s)
|
||||
t.➡
|
||||
pass
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
[output]
|
||||
include=[
|
||||
; String
|
||||
{"display": "begins_with(…)"},
|
||||
]
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
extends Node
|
||||
|
||||
var i: int
|
||||
|
||||
func test():
|
||||
var t = char(i)
|
||||
t.➡
|
||||
pass
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a()"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
||||
|
|
@ -3,6 +3,6 @@ extends Node
|
|||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
func a():
|
||||
var test = A.new()
|
||||
test.➡
|
||||
pass
|
||||
var test = A.new()
|
||||
test.➡
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue