mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Fixed sized array size inference, primitive type handling in ir
This commit is contained in:
parent
8894430f98
commit
a20519ee04
8 changed files with 92 additions and 21 deletions
|
@ -2462,6 +2462,13 @@ public:
|
|||
BfTokenNode* mOpenBracket;
|
||||
BfSizedArray<ASTREF(BfAstNode*)> mParams; // Either commas or constant size expression
|
||||
BfTokenNode* mCloseBracket;
|
||||
|
||||
bool IsInferredSize()
|
||||
{
|
||||
if (mParams.mSize > 0)
|
||||
return BfNodeIsA<BfUninitializedExpression>(mParams[0]);
|
||||
return false;
|
||||
}
|
||||
}; BF_AST_DECL(BfArrayTypeRef, BfElementedTypeRef);
|
||||
|
||||
class BfNullableTypeRef : public BfElementedTypeRef
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue