mirror of
https://onedev.site.tesses.net/crosslang
synced 2026-04-18 12:37:04 +00:00
Fix MetadataDecode name and fix compiler error with ci
This commit is contained in:
@@ -1573,7 +1573,7 @@ class GC {
|
|||||||
|
|
||||||
void EnsureCanRunInCrossLang();
|
void EnsureCanRunInCrossLang();
|
||||||
|
|
||||||
TDictionary* DecodeMetadata(GCList& ls, size_t index);
|
TDictionary* MetadataDecode(GCList& ls, size_t index);
|
||||||
};
|
};
|
||||||
class TAssociativeArray : public THeapObject
|
class TAssociativeArray : public THeapObject
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ namespace Tesses::CrossLang
|
|||||||
bytes.push_back(std::get<bool>(n) ? 1 : 0);
|
bytes.push_back(std::get<bool>(n) ? 1 : 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(std::holds_alternative<nullptr_t>(n))
|
if(std::holds_alternative<std::nullptr_t>(n))
|
||||||
{
|
{
|
||||||
bytes.push_back(2);
|
bytes.push_back(2);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -1467,7 +1467,7 @@ namespace Tesses::CrossLang
|
|||||||
{
|
{
|
||||||
body = ParseNode();
|
body = ParseNode();
|
||||||
}
|
}
|
||||||
if(std::holds_alternative<nullptr_t>(item))
|
if(std::holds_alternative<std::nullptr_t>(item))
|
||||||
item = AdvancedSyntaxNode::Create(DeclareExpression,true, {
|
item = AdvancedSyntaxNode::Create(DeclareExpression,true, {
|
||||||
AdvancedSyntaxNode::Create(GetVariableExpression,true,{"item"})
|
AdvancedSyntaxNode::Create(GetVariableExpression,true,{"item"})
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ namespace Tesses::CrossLang
|
|||||||
throw VMException(errorMessage);
|
throw VMException(errorMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
TDictionary* TFile::DecodeMetadata(GCList& ls, size_t midx)
|
TDictionary* TFile::MetadataDecode(GCList& ls, size_t midx)
|
||||||
{
|
{
|
||||||
if(midx >= this->metadata.size()) return nullptr;
|
if(midx >= this->metadata.size()) return nullptr;
|
||||||
if(this->metadata[midx].second.empty()) return nullptr;
|
if(this->metadata[midx].second.empty()) return nullptr;
|
||||||
|
|||||||
@@ -4337,7 +4337,7 @@ namespace Tesses::CrossLang {
|
|||||||
int64_t index;
|
int64_t index;
|
||||||
if(GetArgument(args,0, index) && (size_t)index < file->metadata.size())
|
if(GetArgument(args,0, index) && (size_t)index < file->metadata.size())
|
||||||
{
|
{
|
||||||
cse.back()->Push(gc,file->DecodeMetadata(ls,(size_t)index));
|
cse.back()->Push(gc,file->MetadataDecode(ls,(size_t)index));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user