Changeset 09c72d5 for src/SynTree


Ignore:
Timestamp:
Mar 2, 2018, 5:34:52 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
b8baa37
Parents:
dd05e12
git-author:
Rob Schluntz <rschlunt@…> (03/02/18 17:10:28)
git-committer:
Rob Schluntz <rschlunt@…> (03/02/18 17:34:52)
Message:

Add function to add bindings from TypeSubstitution? to TypeEnvironment?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/TypeSubstitution.h

    rdd05e12 r09c72d5  
    8282        TypeEnvType typeEnv;
    8383        VarEnvType varEnv;
     84
     85  public:
     86        // has to come after declaration of typeEnv
     87        auto begin()       -> decltype( typeEnv.begin() ) { return typeEnv.begin(); }
     88        auto   end()       -> decltype( typeEnv.  end() ) { return typeEnv.  end(); }
     89        auto begin() const -> decltype( typeEnv.begin() ) { return typeEnv.begin(); }
     90        auto   end() const -> decltype( typeEnv.  end() ) { return typeEnv.  end(); }
    8491};
    8592
Note: See TracChangeset for help on using the changeset viewer.