Exemple #1
0
        public SuperLiteralExpression CreateSuperReference(IType super)
        {
            SuperLiteralExpression expression = new SuperLiteralExpression();

            expression.ExpressionType = super;
            return(expression);
        }
Exemple #2
0
        public override void Switch(IAstTransformer transformer, out Node resultingNode)
        {
            SuperLiteralExpression thisNode           = (SuperLiteralExpression)this;
            Expression             resultingTypedNode = thisNode;

            transformer.OnSuperLiteralExpression(thisNode, ref resultingTypedNode);
            resultingNode = resultingTypedNode;
        }
        override public void OnSuperLiteralExpression(SuperLiteralExpression node)
        {
            base.OnSuperLiteralExpression(node);

            if (node.IsTargetOfMethodInvocation())
            {
                OnExpression(node);
            }
        }
Exemple #4
0
 public override void OnSuperLiteralExpression(SuperLiteralExpression node)
 {
     if (callingClass == null)
     {
         ClearResult();
     }
     else
     {
         MakeResult(callingClass.BaseType);
     }
 }
 override public void OnSuperLiteralExpression(SuperLiteralExpression node)
 {
     if (AstUtil.IsTargetOfMethodInvocation(node))
     {
         return;
     }
     if (AstUtil.IsTargetOfMemberReference(node))
     {
         return;
     }
     Error(CompilerErrorFactory.InvalidSuper(node));
 }
Exemple #6
0
        override public void OnSuperLiteralExpression(SuperLiteralExpression node)
        {
            var externalSelf = CodeBuilder.CreateReference(node.LexicalInfo, ExternalEnumeratorSelf());

            if (AstUtil.IsTargetOfMethodInvocation(node))             // super(...)
            {
                ReplaceCurrentNode(CodeBuilder.CreateMemberReference(externalSelf, (IMethod)GetEntity(node)));
            }
            else             // super.Method(...)
            {
                ReplaceCurrentNode(externalSelf);
            }
        }
Exemple #7
0
 override public void OnSuperLiteralExpression(SuperLiteralExpression node)
 {
     WriteKeyword("super");
 }
 public override void OnSuperLiteralExpression(SuperLiteralExpression node)
 {
     throw new NotImplementedException();
 }
Exemple #9
0
 override public void OnSuperLiteralExpression(SuperLiteralExpression node)
 {
     OnExpression(node);
 }
Exemple #10
0
 public override void OnSuperLiteralExpression(SuperLiteralExpression node)
 {
     _expression = new CodeBaseReferenceExpression();
 }
 public override void OnSuperLiteralExpression(SuperLiteralExpression node)
 {
     base.OnSuperLiteralExpression(node);
     Check(node);
 }