Sync classref with current source

This commit is contained in:
Rémi Verschelde
2019-02-10 13:20:15 +01:00
parent 9c32dacbb5
commit 33ce099dda
17 changed files with 234 additions and 72 deletions

View File

@@ -48,7 +48,7 @@ In the following example we use a :ref:`LineEdit<class_LineEdit>` node to write
func _on_text_entered(command):
var error = expression.parse(command, [])
if error != OK:
print(get_error_text())
print(expression.get_error_text())
return
var result = expression.execute([], null, true)
if not expression.has_execute_failed():
@@ -63,6 +63,8 @@ Method Descriptions
Executes the expression that was previously parsed by :ref:`parse<class_Expression_method_parse>` and returns the result. Before you use the returned object, you should check if the method failed by calling :ref:`has_execute_failed<class_Expression_method_has_execute_failed>`.
If you defined input variables in :ref:`parse<class_Expression_method_parse>`, you can specify their values in the inputs array, in the same order.
.. _class_Expression_method_get_error_text:
- :ref:`String<class_String>` **get_error_text** **(** **)** const
@@ -81,3 +83,5 @@ Returns ``true`` if :ref:`execute<class_Expression_method_execute>` has failed.
Parses the expression and returns a :ref:`Error<enum_@GlobalScope_Error>`.
You can optionally specify names of variables that may appear in the expression with ``input_names``, so that you can bind them when it gets executed.