mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-24 18:48:01 +02:00
Fixed Go To Definition cases in generated code
This commit is contained in:
parent
4e5327e8b8
commit
100181b062
4 changed files with 36 additions and 9 deletions
|
@ -2182,12 +2182,14 @@ namespace IDE.ui
|
|||
for (var emitEmbedData in resolveParams.mEmitEmbeds)
|
||||
{
|
||||
var data = resolvePassData.GetEmitEmbedData(emitEmbedData.mTypeName, var srcLength, var revision);
|
||||
if (srcLength < 0)
|
||||
if ((srcLength < 0) && (resolveType == .ClassifyFullRefresh))
|
||||
srcLength = 0;
|
||||
|
||||
emitEmbedData.mCharData = new EditWidgetContent.CharData[srcLength+1] (?);
|
||||
emitEmbedData.mCharData[srcLength] = default;
|
||||
Internal.MemCpy(emitEmbedData.mCharData.Ptr, data, srcLength * strideof(EditWidgetContent.CharData));
|
||||
if (srcLength >= 0)
|
||||
{
|
||||
emitEmbedData.mCharData = new EditWidgetContent.CharData[srcLength+1] (?);
|
||||
emitEmbedData.mCharData[srcLength] = default;
|
||||
Internal.MemCpy(emitEmbedData.mCharData.Ptr, data, srcLength * strideof(EditWidgetContent.CharData));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue