mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
AllowDuplicatesAttribute
This commit is contained in:
parent
2618b29daa
commit
8808da307f
13 changed files with 39 additions and 2 deletions
|
@ -762,6 +762,15 @@ bool BfAstNode::IsExpression()
|
|||
return IsA<BfExpression>();
|
||||
}
|
||||
|
||||
bool BfAstNode::WantsWarning(int warningNumber)
|
||||
{
|
||||
auto parserData = GetParserData();
|
||||
if (parserData == NULL)
|
||||
return true;
|
||||
int srcStart = GetSrcStart();
|
||||
return (!parserData->IsUnwarnedAt(this)) && (parserData->IsWarningEnabledAtSrcIndex(warningNumber, GetSrcStart()));
|
||||
}
|
||||
|
||||
bool BfAstNode::LocationEquals(BfAstNode* otherNode)
|
||||
{
|
||||
return (GetSourceData() == otherNode->GetSourceData()) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue