mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 23:34:10 +02:00
Merge branch 'master' into idehelper-changes
This commit is contained in:
commit
24b03fa5aa
7 changed files with 223 additions and 25 deletions
|
@ -175,6 +175,9 @@ namespace IDE.Compiler
|
|||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BfParser_SetCompleteParse(void* bfParser);
|
||||
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern char8* BfSystem_GetParserLocationName(void* bfParser, int32 line, int32 column);
|
||||
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BfParser_GetLineCharAtIdx(void* bfParser, int32 idx, int32* line, int32* lineChar);
|
||||
|
||||
|
@ -423,7 +426,15 @@ namespace IDE.Compiler
|
|||
BfParser_SetHashMD5(mNativeBfParser, ref md5Hash);
|
||||
}
|
||||
|
||||
public (int, int) GetLineCharAtIdx(int idx) {
|
||||
public void GetLocationName(int line, int column, String outBuffer)
|
||||
{
|
||||
var ptr = BfSystem_GetParserLocationName(mNativeBfParser, (.)line, (.)column);
|
||||
if (ptr != null)
|
||||
outBuffer.Append(ptr);
|
||||
}
|
||||
|
||||
public (int, int) GetLineCharAtIdx(int idx)
|
||||
{
|
||||
int32 line = 0;
|
||||
int32 char = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue