Package weasel.interpreter.bytecode

Examples of weasel.interpreter.bytecode.WeaselInstructionReturnNull


    WeaselGenericClass retClass = method.getGenericReturn();
    WeaselInstructionList instructions;
    if(retClass.getBaseClass()==compiler.baseTypes.voidClass){
      expect(iterator.next(), WeaselTokenType.SEMICOLON);
      instructions = new WeaselInstructionList();
      instructions.add(token.line, new WeaselInstructionReturnNull(compilerHelpher.getVarCount()));
    }else{
      WeaselTree tree = WeaselTree.parse(iterator, WeaselTokenType.SEMICOLON);
      if(tree==null){
        throw new WeaselCompilerException(token.line, "return need to return %s", retClass);
      }
View Full Code Here

TOP

Related Classes of weasel.interpreter.bytecode.WeaselInstructionReturnNull

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.