| 178 | } |
| 179 | |
| 180 | void CollectFunctions( ParserState& state, std::map<Symbol*, ASTNode*>& functions ) |
| 181 | { |
| 182 | ZoneScoped; |
| 183 | |
| 184 | ASTNode* root = state.GetTree(); |
| 185 | if( !root ) |
| 186 | { |
| 187 | return; |
| 188 | } |
| 189 | |
| 190 | for( size_t i = 0, n = root->GetChildrenCount(); i < n; ++i ) |
| 191 | { |
| 192 | ASTNode* node = root->GetChild( i ); |
| 193 | if( node && node->GetNodeType() == NT_FUNCTION_DEFINITION ) |
| 194 | { |
| 195 | ASTNode* header = node->GetChild( 0 ); |
| 196 | assert( header->GetNodeType() == NT_FUNCTION_HEADER ); |
| 197 | |
| 198 | functions[header->GetSymbol()] = node; |
| 199 | } |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | void AddStructDotPrefix( ASTNode* node, const std::set<Symbol*>& structMembers, Symbol* symbol ) |
| 204 | { |
no test coverage detected