mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Better handling of autocomplete with tokens
This commit is contained in:
parent
74f3ef4e43
commit
e16e4613b6
14 changed files with 108 additions and 65 deletions
|
@ -58,7 +58,7 @@ bool BfSource::WantsStats()
|
|||
return ((int)parser->mFileName.IndexOf("main2.cs") != -1);
|
||||
}
|
||||
|
||||
void BfSource::AddErrorNode(BfAstNode* astNode)
|
||||
BfErrorNode* BfSource::CreateErrorNode(BfAstNode* astNode)
|
||||
{
|
||||
BfErrorNode* errorNode = BfNodeDynCast<BfErrorNode>(astNode);
|
||||
if (errorNode == NULL)
|
||||
|
@ -67,8 +67,12 @@ void BfSource::AddErrorNode(BfAstNode* astNode)
|
|||
errorNode->Init(astNode->GetSrcStart(), astNode->GetSrcStart(), astNode->GetSrcEnd());
|
||||
errorNode->mRefNode = astNode;
|
||||
}
|
||||
return errorNode;
|
||||
}
|
||||
|
||||
mPendingErrorNodes.push_back(errorNode);
|
||||
void BfSource::AddErrorNode(BfAstNode* astNode)
|
||||
{
|
||||
mPendingErrorNodes.push_back(CreateErrorNode(astNode));
|
||||
}
|
||||
|
||||
int BfSource::AllocChars(int charCount)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue