mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
17
IDEHelper/Compiler/BfSourcePositionFinder.cpp
Normal file
17
IDEHelper/Compiler/BfSourcePositionFinder.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#include "BfSourcePositionFinder.h"
|
||||
#include "BfParser.h"
|
||||
|
||||
USING_NS_BF;
|
||||
|
||||
BfSourcePositionFinder::BfSourcePositionFinder(BfParser* bfParser, int findPosition)
|
||||
{
|
||||
mParser = bfParser;
|
||||
mFindPosition = findPosition;
|
||||
mClosestElement = NULL;
|
||||
}
|
||||
|
||||
void BfSourcePositionFinder::Visit(BfAstNode* node)
|
||||
{
|
||||
if ((mFindPosition >= node->GetSrcStart()) && (mFindPosition <= node->GetSrcEnd()))
|
||||
mClosestElement = node;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue