Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 /// <summary>
 /// Visit instanceof expression.
 /// </summary>
 /// <param name="x"></param>
 virtual public void VisitInstanceOfEx(InstanceOfEx x)
 {
     VisitElement(x.Expression);
     VisitElement(x.ClassNameRef);
 }