浏览代码

finish foundation update

/siyaoH-1.17-PlatformMessage
xingweizhu 4 年前
当前提交
361fbba0
共有 4 个文件被更改,包括 735 次插入219 次删除
  1. 21
      com.unity.uiwidgets/Runtime/foundation/assertions.cs
  2. 913
      com.unity.uiwidgets/Runtime/foundation/diagnostics.cs
  3. 4
      com.unity.uiwidgets/Runtime/foundation/object.cs
  4. 16
      com.unity.uiwidgets/Runtime/foundation/observer_list.cs

21
com.unity.uiwidgets/Runtime/foundation/assertions.cs


return DiagnosticsNode.message(formatException());
}
Diagnosticable diagnosticable = this._exceptionToDiagnosticable();
Diagnosticable diagnosticable = _exceptionToDiagnosticable();
DiagnosticsNode summary = null;
if (diagnosticable != null) {
DiagnosticPropertiesBuilder builder = new DiagnosticPropertiesBuilder();

? new ErrorDescription($"thrown {new ErrorDescription($" {context}")}")
: new ErrorDescription("");
Diagnosticable diagnosticable = this._exceptionToDiagnosticable();
Diagnosticable diagnosticable = _exceptionToDiagnosticable();
if (exception is NullReferenceException) {
properties.add(new ErrorDescription($"The null value was {verb}."));
}

D.assert(value != null);
}
new DiagnosticPropertiesBuilder _builder {
new DiagnosticPropertiesBuilder builder {
DiagnosticPropertiesBuilder builder = base._builder;
DiagnosticPropertiesBuilder builder = base.builder;
if (builder == null) {
return null;
}

public class UIWidgetsError : Exception {
public UIWidgetsError(string message) {
string[] lines = message.Split('\n');
this.diagnostics = new List<DiagnosticsNode>() {
diagnostics = new List<DiagnosticsNode>() {
this.diagnostics.Add(new ErrorDescription(lines[i]));
diagnostics.Add(new ErrorDescription(lines[i]));
}
}

}
if (_errorCount == 0 || forceReport) {
D.logError(details.ToString(), details.exception);
D.logError(new TextTreeRenderer(
wrapWidth: wrapWidth,
wrapWidthProperties: wrapWidth,
maxDescendentsTruncatableNode: 5).render(
details.toDiagnosticsNode(style: DiagnosticsTreeStyle.error)).TrimEnd(), details.exception);
}
D.logError($"Another exception was thrown: ${details.summary}");

public string toStringShort() => "UIWidgetsError";
public override string ToString() {
return string.Join("\n", diagnostics);
TextTreeRenderer renderer = new TextTreeRenderer(wrapWidth: 400000000);
return string.Join("\n", diagnostics.Select((DiagnosticsNode node) => renderer.render(node).TrimEnd()));
}
public static void reportError(UIWidgetsErrorDetails details) {

913
com.unity.uiwidgets/Runtime/foundation/diagnostics.cs
文件差异内容过多而无法显示
查看文件

4
com.unity.uiwidgets/Runtime/foundation/object.cs


namespace Unity.UIWidgets.foundation {
public static partial class foundation_ {
public static string objectRuntimeType(object @object, string optimizedValue) {
public static string objectRuntimeType(object obj, string optimizedValue) {
optimizedValue = @object.GetType().ToString();
optimizedValue = obj.GetType().ToString();
return true;
});
return optimizedValue;

16
com.unity.uiwidgets/Runtime/foundation/observer_list.cs


_list.Add(item);
}
public void Clear() {
public bool Remove(T item) {
_list.Clear();
_set?.Clear();
return _list.Remove(item);
}
public bool Contains(T item) {

_set.Clear();
_set.UnionWith(_list);
}
_isDirty = false;
}

public void CopyTo(T[] array, int arrayIndex) {
_list.CopyTo(array, arrayIndex);
public void Clear() {
_isDirty = true;
_list.Clear();
public bool Remove(T item) {
_isDirty = true;
return _list.Remove(item);
public void CopyTo(T[] array, int arrayIndex) {
_list.CopyTo(array, arrayIndex);
}
public int Count {

正在加载...
取消
保存