mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed some places where variable declarations should be illegal
This commit is contained in:
parent
26604017f8
commit
b128180a15
4 changed files with 18 additions and 4 deletions
|
@ -66,7 +66,7 @@ enum BfEvalExprFlags
|
|||
BfEvalExprFlags_FieldInitializer = 0x2000,
|
||||
BfEvalExprFlags_VariableDeclaration = 0x4000,
|
||||
BfEvalExprFlags_NoAutoComplete = 0x8000,
|
||||
BfEvalExprFlags_AllowNonConst = 0x10000
|
||||
BfEvalExprFlags_AllowNonConst = 0x10000
|
||||
};
|
||||
|
||||
enum BfCastFlags
|
||||
|
@ -314,6 +314,7 @@ public:
|
|||
bool mAllowTargeting;
|
||||
bool mHadScopeValueRetain;
|
||||
bool mIsDeferredBlock;
|
||||
bool mAllowVariableDeclarations;
|
||||
BfBlock* mAstBlock;
|
||||
BfAstNode* mCloseNode;
|
||||
BfExprEvaluator* mExprEvaluator;
|
||||
|
@ -346,6 +347,7 @@ public:
|
|||
mHadScopeValueRetain = false;
|
||||
mIsDeferredBlock = false;
|
||||
mAllowTargeting = true;
|
||||
mAllowVariableDeclarations = true;
|
||||
mMixinDepth = 0;
|
||||
mScopeDepth = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue