| 1041 | } |
| 1042 | |
| 1043 | ASTNode* NewStruct( ParserState& state, const InlineString& name ) |
| 1044 | { |
| 1045 | auto structDecl = state.NewNode( NT_STRUCT ); |
| 1046 | auto symbol = state.GetSymbolTable().AddSymbol( name ? name : state.AllocateName() ); |
| 1047 | symbol->isTypeName = true; |
| 1048 | symbol->definition = structDecl; |
| 1049 | structDecl->SetSymbol( symbol ); |
| 1050 | structDecl->SetType( TypeFromSymbol( symbol ) ); |
| 1051 | return structDecl; |
| 1052 | } |
| 1053 | |
| 1054 | ASTNode* NewVarIdentifier( ParserState& state, Symbol* var ) |
| 1055 | { |
no test coverage detected