BoundExpression BindInstanceOfEx(AST.InstanceOfEx x) { var result = new BoundInstanceOfEx(BindExpression(x.Expression, BoundAccess.Read)); if (x.ClassNameRef is AST.DirectTypeRef) { result.IsTypeDirect = ((AST.DirectTypeRef)x.ClassNameRef).ClassName; } else { result.IsTypeIndirect = BindExpression(((AST.IndirectTypeRef)x.ClassNameRef).ClassNameVar, BoundAccess.Read); } // return(result); }
/// <summary> /// Visit instanceof expression. /// </summary> /// <param name="x"></param> virtual public void VisitInstanceOfEx(InstanceOfEx x) { VisitElement(x.Expression); VisitElement(x.ClassNameRef); }