Changeset 94c98f0e


Ignore:
Timestamp:
Apr 11, 2023, 3:51:31 PM (13 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master
Children:
153d3440
Parents:
b05beaa
Message:

Added/cleaned some AST comments.

Location:
src/AST
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Attribute.hpp

    rb05beaa r94c98f0e  
    2727class Expr;
    2828
     29/// An entry in an attribute list: `__attribute__(( ... ))`
    2930class Attribute final : public Node {
    3031public:
  • src/AST/Decl.hpp

    rb05beaa r94c98f0e  
    316316public:
    317317        bool isTyped; // isTyped indicated if the enum has a declaration like:
    318         // enum (type_optional) Name {...} 
     318        // enum (type_optional) Name {...}
    319319        ptr<Type> base; // if isTyped == true && base.get() == nullptr, it is a "void" type enum
    320320        enum class EnumHiding { Visible, Hide } hide;
     
    374374};
    375375
     376/// Assembly declaration: `asm ... ( "..." : ... )`
    376377class AsmDecl : public Decl {
    377378public:
  • src/AST/Expr.hpp

    rb05beaa r94c98f0e  
    254254};
    255255
     256/// A name qualified by a namespace or type.
    256257class QualifiedNameExpr final : public Expr {
    257258public:
     
    259260        std::string name;
    260261
    261         QualifiedNameExpr( const CodeLocation & loc, const Decl * d, const std::string & n ) 
     262        QualifiedNameExpr( const CodeLocation & loc, const Decl * d, const std::string & n )
    262263        : Expr( loc ), type_decl( d ), name( n ) {}
    263264
     
    621622};
    622623
     624/// A name that refers to a generic dimension parameter.
    623625class DimensionExpr final : public Expr {
    624626public:
     
    910912};
    911913
    912 
    913914}
    914915
  • src/AST/Init.hpp

    rb05beaa r94c98f0e  
    117117        ptr<Init> init;
    118118
    119         ConstructorInit( 
     119        ConstructorInit(
    120120                const CodeLocation & loc, const Stmt * ctor, const Stmt * dtor, const Init * init )
    121121        : Init( loc, MaybeConstruct ), ctor( ctor ), dtor( dtor ), init( init ) {}
  • src/AST/Stmt.hpp

    rb05beaa r94c98f0e  
    397397};
    398398
     399// Clause in a waitfor statement: waitfor (..., ...) ...
    399400class WaitForClause final : public StmtClause {
    400401  public:
     
    457458        MUTATE_FRIEND
    458459};
     460
    459461} // namespace ast
    460462
Note: See TracChangeset for help on using the changeset viewer.