mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 23:34:10 +02:00
Add BfParser_GetLineCharAtIdx, include fields in document symbols and optionally include location in type defs
This commit is contained in:
parent
9daae6baa6
commit
852d11c6c3
5 changed files with 282 additions and 211 deletions
|
@ -175,6 +175,9 @@ namespace IDE.Compiler
|
|||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BfParser_SetCompleteParse(void* bfParser);
|
||||
|
||||
[CallingConvention(.Stdcall), CLink]
|
||||
static extern void BfParser_GetLineCharAtIdx(void* bfParser, int32 idx, int32* line, int32* lineChar);
|
||||
|
||||
public BfSystem mSystem;
|
||||
public void* mNativeBfParser;
|
||||
public bool mIsUsed;
|
||||
|
@ -419,5 +422,14 @@ namespace IDE.Compiler
|
|||
var md5Hash;
|
||||
BfParser_SetHashMD5(mNativeBfParser, ref md5Hash);
|
||||
}
|
||||
|
||||
public (int, int) GetLineCharAtIdx(int idx) {
|
||||
int32 line = 0;
|
||||
int32 char = 0;
|
||||
|
||||
BfParser_GetLineCharAtIdx(mNativeBfParser, (.) idx, &line, &char);
|
||||
|
||||
return (line, char);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue