Ignore:
Timestamp:
Jul 26, 2017, 2:44:09 PM (4 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
2edd80ae
Parents:
b947fb2
Message:

Virtual casts have been added. They still require a lot of hand coded support to work but for simple cases it should be enough.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ExpressionNode.cc

    rb947fb2 ra5f0529  
    1010// Created On       : Sat May 16 13:17:07 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Tus Jul 18 10:08:00 2017
    13 // Update Count     : 550
     12// Last Modified On : Tus Jul 25 10:11:00 2017
     13// Update Count     : 551
    1414//
    1515
     
    252252}
    253253
     254
     255Expression *build_virtual_cast( DeclarationNode *decl_node, ExpressionNode *expr_node ) {
     256        Type *targetType = maybeMoveBuildType( decl_node );
     257        Expression *castArg = maybeMoveBuild< Expression >( expr_node );
     258        return new VirtualCastExpr( castArg, targetType );
     259}
     260
    254261Expression *build_fieldSel( ExpressionNode *expr_node, Expression *member ) {
    255262        UntypedMemberExpr *ret = new UntypedMemberExpr( member, maybeMoveBuild< Expression >(expr_node) );
Note: See TracChangeset for help on using the changeset viewer.