| 2189 | } |
| 2190 | |
| 2191 | bool AutoAssignRegisters( ParserState& state, ASTNode* callNode ) |
| 2192 | { |
| 2193 | ZoneScoped; |
| 2194 | |
| 2195 | Symbol* entryPointSymbol = callNode->GetSymbol(); |
| 2196 | if( !entryPointSymbol || !entryPointSymbol->definition ) |
| 2197 | { |
| 2198 | return false; |
| 2199 | } |
| 2200 | |
| 2201 | ASTNode* functionHeader = entryPointSymbol->definition->GetChildOrNull( 0 ); |
| 2202 | if( !functionHeader ) |
| 2203 | { |
| 2204 | return false; |
| 2205 | } |
| 2206 | return AutoAssignRegistersForNode( state, functionHeader, callNode->GetLocation() ); |
| 2207 | } |
| 2208 | |
| 2209 | ASTNode* NewStructMember( ParserState& state, Symbol* sourceSymbol ) |
| 2210 | { |
no test coverage detected