修复了一些bug

This commit is contained in:
2025-11-26 17:58:30 +08:00
parent 2f24d94db2
commit 88b0edfe6a
4 changed files with 18 additions and 3 deletions

View File

@@ -97,6 +97,14 @@ namespace Convention.RScript.Parser
this.context = context;
// 默认启用未定义标识符作为字符串的功能
this.context.Options.UndefinedIdentifiersAsStrings = true;
// 启用大小写敏感
this.context.Options.CaseSensitive = true;
// 启用溢出检查
this.context.Options.Checked = true;
#if UNITY_EDITOR
// 浮点数使用float而非doubleUnity性能优化
this.context.Options.RealLiteralDataType = RealLiteralDataType.Single;
#endif
}
private readonly Dictionary<string, Type> CompileGenericExpressionTypen = new();