Changeset 933f32f for src/Tuples/Tuples.h
- Timestamp:
- May 24, 2019, 10:19:41 AM (7 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d908563
- Parents:
- 6a9d4b4 (diff), 292642a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/Tuples/Tuples.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Tuples/Tuples.h
r6a9d4b4 r933f32f 19 19 #include <vector> 20 20 21 #include "AST/Fwd.hpp" 22 #include "AST/Node.hpp" 21 23 #include "SynTree/Expression.h" 22 24 #include "SynTree/Declaration.h" … … 27 29 namespace Tuples { 28 30 // TupleAssignment.cc 29 void handleTupleAssignment( ResolvExpr::AlternativeFinder & currentFinder, UntypedExpr * assign, 31 void handleTupleAssignment( ResolvExpr::AlternativeFinder & currentFinder, UntypedExpr * assign, 30 32 std::vector< ResolvExpr::AlternativeFinder >& args ); 31 33 32 34 // TupleExpansion.cc 33 35 /// expands z.[a, b.[x, y], c] into [z.a, z.b.x, z.b.y, z.c], inserting UniqueExprs as appropriate … … 42 44 /// returns VoidType if any of the expressions have Voidtype, otherwise TupleType of the Expression result types 43 45 Type * makeTupleType( const std::list< Expression * > & exprs ); 46 const ast::Type * makeTupleType( const std::vector<ast::ptr<ast::Expr>> & exprs ); 44 47 45 48 /// returns a TypeInstType if `type` is a ttype, nullptr otherwise 46 49 TypeInstType * isTtype( Type * type ); 50 const ast::TypeInstType * isTtype( const ast::Type * type ); 47 51 48 52 /// returns true if the expression may contain side-effects.
Note:
See TracChangeset
for help on using the changeset viewer.