summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-04 17:37:45 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-04 17:37:45 -0300
commit9e477babb3bf0ce5179395c2a5155a3f3cd36798 (patch)
tree5246a7c0bc09580f60ea17b694aacc9cd8da8731 /bin
parent76c2e8583e70e8c976a306e77a40e8e7226aa249 (diff)
-GDScript support for accessing properties directly
-Added code lookup and code completion support for properties too
Diffstat (limited to 'bin')
-rw-r--r--bin/tests/test_gdscript.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/tests/test_gdscript.cpp b/bin/tests/test_gdscript.cpp
index 43d65f782b..1ee27ec661 100644
--- a/bin/tests/test_gdscript.cpp
+++ b/bin/tests/test_gdscript.cpp
@@ -581,6 +581,28 @@ static void _disassemble_class(const Ref<GDScript>& p_class,const Vector<String>
incr+=4;
} break;
+ case GDFunction::OPCODE_SET_MEMBER: {
+
+ txt+=" set_member ";
+ txt+="[\"";
+ txt+=func.get_global_name(code[ip+1]);
+ txt+="\"]=";
+ txt+=DADDR(2);
+ incr+=3;
+
+
+ } break;
+ case GDFunction::OPCODE_GET_MEMBER: {
+
+ txt+=" get_member ";
+ txt+=DADDR(2);
+ txt+="=";
+ txt+="[\"";
+ txt+=func.get_global_name(code[ip+1]);
+ txt+="\"]";
+ incr+=3;
+
+ } break;
case GDFunction::OPCODE_ASSIGN: {
txt+=" assign ";