MyC.Var.getTypeId C# (CSharp) 메소드

getTypeId() 공개 메소드

public getTypeId ( ) : int
리턴 int
  public int getTypeId() { return type; }
  public void setTypeId(int t) { type = t; }

Usage Example

예제 #1
0
/* parse a return */
        void fcReturn()
        {
            Var e = emit.GetFunc();

            CommentHolder();               /* mark the position in insn stream */
            tok.scan();                    /* get the return value */
            if (tok.getFirstChar() == ';') /* if end of statment */
            {
                if (e.getTypeId() != Tok.T_VOID)
                {
                    io.Abort("Expected value for return type");
                }
            }
            else
            {
                if (e.getTypeId() == Tok.T_VOID)
                {
                    io.Abort("Unexpected value for void return type");
                }
                boolExpr(); /* parse as expression */
            }
            emit.Ret();     /* issue the return (value is on stack) */
            CommentFill();
            tok.scan();     /* move past the semi */
        }
All Usage Examples Of MyC.Var::getTypeId