diff options
Diffstat (limited to 'gcc/d/dmd/expression.d')
-rw-r--r-- | gcc/d/dmd/expression.d | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gcc/d/dmd/expression.d b/gcc/d/dmd/expression.d index 07d885b0bee..107e85b0793 100644 --- a/gcc/d/dmd/expression.d +++ b/gcc/d/dmd/expression.d @@ -967,11 +967,6 @@ extern (C++) abstract class Expression : ASTNode return null; } - TupleExp toTupleExp() - { - return null; - } - /*************************************** * Return !=0 if expression is an lvalue. */ @@ -1660,6 +1655,7 @@ extern (C++) abstract class Expression : ASTNode inout(MixinExp) isMixinExp() { return op == EXP.mixin_ ? cast(typeof(return))this : null; } inout(ImportExp) isImportExp() { return op == EXP.import_ ? cast(typeof(return))this : null; } inout(AssertExp) isAssertExp() { return op == EXP.assert_ ? cast(typeof(return))this : null; } + inout(ThrowExp) isThrowExp() { return op == EXP.throw_ ? cast(typeof(return))this : null; } inout(DotIdExp) isDotIdExp() { return op == EXP.dotIdentifier ? cast(typeof(return))this : null; } inout(DotTemplateExp) isDotTemplateExp() { return op == EXP.dotTemplateDeclaration ? cast(typeof(return))this : null; } inout(DotVarExp) isDotVarExp() { return op == EXP.dotVariable ? cast(typeof(return))this : null; } @@ -1745,6 +1741,7 @@ extern (C++) abstract class Expression : ASTNode inout(ModuleInitExp) isModuleInitExp() { return op == EXP.moduleString ? cast(typeof(return))this : null; } inout(FuncInitExp) isFuncInitExp() { return op == EXP.functionString ? cast(typeof(return))this : null; } inout(PrettyFuncInitExp) isPrettyFuncInitExp() { return op == EXP.prettyFunction ? cast(typeof(return))this : null; } + inout(ObjcClassReferenceExp) isObjcClassReferenceExp() { return op == EXP.objcClassReference ? cast(typeof(return))this : null; } inout(ClassReferenceExp) isClassReferenceExp() { return op == EXP.classReference ? cast(typeof(return))this : null; } inout(ThrownExceptionExp) isThrownExceptionExp() { return op == EXP.thrownException ? cast(typeof(return))this : null; } @@ -2684,7 +2681,7 @@ extern (C++) final class StringExp : Expression const len2 = se2.len; assert(this.sz == se2.sz, "Comparing string expressions of different sizes"); - //printf("sz = %d, len1 = %d, len2 = %d\n", sz, (int)len1, (int)len2); + //printf("sz = %d, len1 = %d, len2 = %d\n", sz, cast(int)len1, cast(int)len2); if (len1 == len2) { switch (sz) @@ -2887,11 +2884,6 @@ extern (C++) final class TupleExp : Expression return new TupleExp(loc, exps); } - override TupleExp toTupleExp() - { - return this; - } - override TupleExp syntaxCopy() { return new TupleExp(loc, e0 ? e0.syntaxCopy() : null, arraySyntaxCopy(exps)); |