MethodInfo methodInfo = createVectorGeneratorMethodInfo(
getProject(), vectorNode, name.getBaseName());
addMethodTrait(name, methodInfo, false);
ICompilerProject project = getProject();
ASProjectScope projectScope = (ASProjectScope)project.getScope();
IDefinition vectorDef = projectScope.findDefinitionByName(IASLanguageConstants.Vector_qname);
Name vectorName = ((ClassDefinition)vectorDef).getMName(project);
InstructionList generatorFunctionBody = new InstructionList();
generatorFunctionBody.addInstruction(OP_getlocal0);
generatorFunctionBody.addInstruction(OP_pushscope);