override public bool appendLeftChild(IRTSLinker linker) { if (linker.getId() == IRTSDefine.Linker.BRACKET) { IRTSType ctp = ((RTSBracketL)linker).getCastType(); mCastType = ctp; return(ctp != null); } else if (linker.getId() == IRTSDefine.Linker.PROPERTY) { mProperty |= ((RTSPropertyL)linker).getProperty(); return(true); } else if (linker.getId() == IRTSDefine.Linker.TYPE) { mProperty |= IRTSDefine.Property.DECALRE; mCastType = ((RTSTypeL)linker).getRTSType(); linker.setSuper(this); return(true); } else { return(false); } }
override public bool appendLeftChild(IRTSLinker linker) { if (linker.getId() == IRTSDefine.Linker.PROPERTY) { mAllProperty |= ((RTSPropertyL)linker).getProperty(); return(true); } else { return(false); } }
override public IRTSLinker appendRightChild(IRTSLinker linker) { if (linker.getId() == IRTSDefine.Linker.PROPERTY) { mAllProperty |= ((RTSPropertyL)linker).getProperty(); return(this); } else { return(linker); } }
public static string propertyName(IRTSDefine.Property property) { System.Text.StringBuilder buffer = new System.Text.StringBuilder(); if ((property & IRTSDefine.Property.CONST) != 0) { buffer.Append("const "); } if ((property & IRTSDefine.Property.GLOBAL) != 0) { buffer.Append("static "); } string ret = buffer.ToString(); return(ret); }
public RTSPropertyL(IRTSDefine.Property property) : base(IRTSDefine.Linker.PROPERTY) { mProperty = property; mAllProperty = property; }
public RTSVariableR(IRTSType castType, object value) { mCast = castType; mValue = castType == null ? value : castType.castValue(value); mProperty = IRTSDefine.Property.CONST; }
public RTSVariableR(IRTSDefine.Property property, IRTSType castType, string varName) { mVar = varName; mCast = castType; mProperty = property; }