mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 08:05:45 +00:00
ZoneCodeGenerator: Fix PeekTag and NextTag returning null when no tags exist anymore. It should instead return an empty string
This commit is contained in:
parent
49883bfce3
commit
6ea19c6fe2
@ -61,12 +61,12 @@ namespace ZoneCodeGenerator.Parsing.Testing
|
|||||||
|
|
||||||
protected string PeekTag()
|
protected string PeekTag()
|
||||||
{
|
{
|
||||||
return lastResult?.MatchedTags.ElementAtOrDefault(tagOffset);
|
return lastResult?.MatchedTags.ElementAtOrDefault(tagOffset) ?? "";
|
||||||
}
|
}
|
||||||
|
|
||||||
protected string NextTag()
|
protected string NextTag()
|
||||||
{
|
{
|
||||||
return lastResult?.MatchedTags.ElementAtOrDefault(tagOffset++);
|
return lastResult?.MatchedTags.ElementAtOrDefault(tagOffset++) ?? "";
|
||||||
}
|
}
|
||||||
|
|
||||||
protected bool HasMatcherTokens(string matcherName)
|
protected bool HasMatcherTokens(string matcherName)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user