INNER CODE UNIT · C#
result
axmolengine/axmol · tools/bindings-generator/src/BindingGenerator.cs:1140
var result = new StringBuilder(type.Length + 16);
var position = 0;
foreach (Match match in matches)
{
result.Append(type, position, match.Index - position);
var token = match.Value;
var before = match.Index > 0 ? type[match.Index - 1] : '\0';
var afterIndex = match.Index + match.Length;
var replacement = token;
var isNumericSuffix = match.Index > 0 &&
(char.IsDigit(before) || before == '.') &&
(token is "f" or "F" or "l" or "L" or "u" or "U" or "ll" or "LL");
if (before != ':' && !isNumericSuffix && !IsBuiltinTypeToken(token))
{
replacement = FindQualifiedType(token, contextParts, tree) ?? token;
}
result.Append(replacement);
position = afterIndex;