| 571 | } |
| 572 | |
| 573 | void StripSemanticsInsideStucts( ASTNode* structNode ) |
| 574 | { |
| 575 | for( auto memberNode : structNode->GetChildren() ) |
| 576 | { |
| 577 | assert( memberNode && memberNode->GetNodeType() == NT_STRUCT_MEMBER ); |
| 578 | |
| 579 | for( auto childNode : memberNode->GetChildren() ) |
| 580 | { |
| 581 | assert( childNode && childNode->GetNodeType() == NT_NAME_DECLARATION ); |
| 582 | |
| 583 | Symbol* symbol = childNode->GetSymbol(); |
| 584 | if( symbol && symbol->semantic ) |
| 585 | { |
| 586 | symbol->semantic.start = symbol->semantic.end = nullptr; |
| 587 | } |
| 588 | } |
| 589 | } |
| 590 | } |
| 591 | |
| 592 | void CollectGlobals( |
| 593 | ParserState& state, |
no test coverage detected