-GDScript support for accessing properties directly

-Added code lookup and code completion support for properties too
This commit is contained in:
Juan Linietsky
2017-01-04 17:37:45 -03:00
parent 76c2e8583e
commit 9e477babb3
9 changed files with 320 additions and 69 deletions
+22
View File
@@ -580,6 +580,28 @@ static void _disassemble_class(const Ref<GDScript>& p_class,const Vector<String>
txt+="\"]";
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: {