Changeset b0d9ff7 for src/Common
- Timestamp:
- Sep 1, 2022, 1:27:52 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 12df6fe
- Parents:
- def751f
- Location:
- src/Common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/CodeLocationTools.cpp
rdef751f rb0d9ff7 137 137 macro(UntypedExpr, Expr) \ 138 138 macro(NameExpr, Expr) \ 139 macro(QualifiedNameExpr, Expr) \ 139 140 macro(AddressExpr, Expr) \ 140 141 macro(LabelAddressExpr, Expr) \ -
src/Common/PassVisitor.h
rdef751f rb0d9ff7 133 133 virtual void visit( NameExpr * nameExpr ) override final; 134 134 virtual void visit( const NameExpr * nameExpr ) override final; 135 virtual void visit ( QualifiedNameExpr * qualifiedNameExpr ) override final; 136 virtual void visit ( const QualifiedNameExpr * qualifiedNameExpr ) override final; 135 137 virtual void visit( CastExpr * castExpr ) override final; 136 138 virtual void visit( const CastExpr * castExpr ) override final; … … 325 327 virtual Expression * mutate( TupleExpr * tupleExpr ) override final; 326 328 virtual Expression * mutate( TupleIndexExpr * tupleExpr ) override final; 327 virtual Expression * mutate( TupleAssignExpr * assignExpr ) override final; 329 virtual Expression * mutate( TupleAssignExpr * assignExpr ) override final; 328 330 virtual Expression * mutate( StmtExpr * stmtExpr ) override final; 329 331 virtual Expression * mutate( UniqueExpr * uniqueExpr ) override final; … … 333 335 virtual Expression * mutate( DefaultArgExpr * argExpr ) override final; 334 336 virtual Expression * mutate( GenericExpr * genExpr ) override final; 337 virtual Expression * mutate( QualifiedNameExpr * qualifiedNameExpr ) override final; 335 338 336 339 virtual Type * mutate( VoidType * basicType ) override final; -
src/Common/PassVisitor.impl.h
rdef751f rb0d9ff7 1927 1927 1928 1928 //-------------------------------------------------------------------------- 1929 // QualifiedNameExpr 1930 template< typename pass_type > 1931 void PassVisitor< pass_type >::visit( QualifiedNameExpr * node ) { 1932 VISIT_START( node ); 1933 1934 indexerScopedAccept( node->result, *this ); 1935 maybeAccept_impl( node->type_decl, *this ); 1936 maybeAccept_impl( node->var, *this ); 1937 1938 VISIT_END( node ); 1939 } 1940 1941 template< typename pass_type > 1942 void PassVisitor< pass_type >::visit( const QualifiedNameExpr * node ) { 1943 VISIT_START( node ); 1944 1945 indexerScopedAccept( node->result, *this ); 1946 maybeAccept_impl( node->type_decl, *this ); 1947 maybeAccept_impl( node->var, *this ); 1948 1949 VISIT_END( node ); 1950 } 1951 1952 template< typename pass_type > 1953 Expression * PassVisitor< pass_type >::mutate( QualifiedNameExpr * node ) { 1954 MUTATE_START( node ); 1955 1956 indexerScopedMutate( node->env , *this ); 1957 indexerScopedMutate( node->result, *this ); 1958 maybeMutate_impl( node->type_decl, *this ); 1959 maybeAccept_impl( node->var, *this ); 1960 1961 MUTATE_END( Expression, node ); 1962 } 1963 1964 //-------------------------------------------------------------------------- 1929 1965 // CastExpr 1930 1966 template< typename pass_type >
Note: See TracChangeset
for help on using the changeset viewer.