修复了一些bug
This commit is contained in:
@@ -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而非double(Unity性能优化)
|
||||
this.context.Options.RealLiteralDataType = RealLiteralDataType.Single;
|
||||
#endif
|
||||
}
|
||||
|
||||
private readonly Dictionary<string, Type> CompileGenericExpressionTypen = new();
|
||||
|
||||
Reference in New Issue
Block a user