expression = $M(driver.context_, $S("$cyr"));
break;
+ case CYDriver::AutoStruct:
+ expression = $ CYThis();
+ prefix << "$cys";
+ break;
+
+ case CYDriver::AutoEnum:
+ expression = $ CYThis();
+ prefix << "$cye";
+ break;
+
default:
_assert(false);
}
" if (false) {\n"
" for (var name in object)\n"
" if (name.substring(0, entire) == prefix)\n"
- " names.push(name.substr(before));\n"
+ " names.push(name);\n"
" } else do {\n"
" if (object.hasOwnProperty(\"cy$complete\")) {\n"
" names = names.concat(object.cy$complete(prefix));\n"
" }\n"
" for (var name of local)\n"
" if (name.substring(0, entire) == prefix)\n"
- " names.push(name.substr(before));\n"
+ " names.push(name);\n"
" } while (object = typeof object === 'object' ? Object.getPrototypeOf(object) : object.__proto__);\n"
" return names;\n"
" }\n"
else
continue;
+ completion.data += begin.size();
+ completion.size -= begin.size();
+
if (CYStartsWith(completion, "$cy"))
continue;
-
completions.push_back(completion);
if (!rest) {