Changes in src/AST/Convert.cpp [b0d9ff7:1931bb01]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
rb0d9ff7 r1931bb01 310 310 node->name, 311 311 get<Attribute>().acceptL( node->attributes ), 312 false, // Temporary313 312 LinkageSpec::Spec( node->linkage.val ), 314 313 get<Type>().accept1(node->base) … … 732 731 } 733 732 734 const ast::Expr * visit( const ast::QualifiedNameExpr * node ) override final {735 auto temp = new QualifiedNameExpr(736 get<Declaration>().accept1(node->type_decl),737 node->name738 );739 temp->var = get<DeclarationWithType>().accept1(node->var);740 auto expr = visitBaseExpr( node,741 temp742 );743 this->node = expr;744 return nullptr;745 }746 747 733 const ast::Expr * visit( const ast::AddressExpr * node ) override final { 748 734 auto expr = visitBaseExpr( node, … … 1754 1740 old->location, 1755 1741 old->name, 1756 old->isTyped,1757 1742 GET_ACCEPT_V(attributes, Attribute), 1758 1743 { old->linkage.val }, … … 2281 2266 } 2282 2267 2283 /// xxx - type_decl should be DeclWithType in the final design2284 /// type_decl is set to EnumDecl as a temporary fix2285 virtual void visit( const QualifiedNameExpr * old ) override final {2286 this->node = visitBaseExpr( old,2287 new ast::QualifiedNameExpr (2288 old->location,2289 GET_ACCEPT_1(type_decl, Decl),2290 GET_ACCEPT_1(var, DeclWithType),2291 old->name2292 )2293 );2294 }2295 2296 2268 virtual void visit( const CastExpr * old ) override final { 2297 2269 this->node = visitBaseExpr( old,
Note:
See TracChangeset
for help on using the changeset viewer.