浏览代码

upgrade widgets/framework

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
9dc87082
共有 9 个文件被更改,包括 631 次插入137 次删除
  1. 64
      com.unity.uiwidgets/Runtime/foundation/diagnostics.cs
  2. 2
      com.unity.uiwidgets/Runtime/widgets/binding.cs
  3. 688
      com.unity.uiwidgets/Runtime/widgets/framework.cs
  4. 2
      com.unity.uiwidgets/Runtime/widgets/layout_builder.cs
  5. 2
      com.unity.uiwidgets/Runtime/widgets/list_wheel_scroll_view.cs
  6. 2
      com.unity.uiwidgets/Runtime/widgets/sliver.cs
  7. 2
      com.unity.uiwidgets/Runtime/widgets/sliver_persistent_header.cs
  8. 2
      com.unity.uiwidgets/Runtime/widgets/table.cs
  9. 4
      com.unity.uiwidgets/Runtime/widgets/widget_inspector.cs

64
com.unity.uiwidgets/Runtime/foundation/diagnostics.cs


prefixOtherLinesRootNode: ""
);
}
class _PrefixedStringBuilder {
internal _PrefixedStringBuilder(string prefixLineOne, string prefixOtherLines) {
this.prefixLineOne = prefixLineOne;

internal _NoDefaultValue() {
}
}
class _NullDefaultValue {
internal _NullDefaultValue() {
}

public static readonly object kNoDefaultValue = new _NoDefaultValue();
public static readonly object kNullDefaultValue = new _NullDefaultValue();

protected DiagnosticsNode(
string name = null,
DiagnosticsTreeStyle? style = null,
String linePrefix = null,
bool showName = true,
bool showSeparator = true
) {

_style = style;
_showName = showName;
this.showSeparator = showSeparator;
this.linePrefix = linePrefix;
}
public static DiagnosticsNode message(

get { return null; }
}
readonly string linePrefix;
public abstract object valueObject { get; }
public virtual DiagnosticsTreeStyle? style {

readonly DiagnosticsTreeStyle? _style;
public bool allowWrap {
get { return false; }
}
public bool allowNameWrap {
get { return false; }
}
public bool allowTruncate {
get { return false; }
}
public abstract List<DiagnosticsNode> getProperties();

return builder.ToString();
}
}
public class DiagnosticsBlock : DiagnosticsNode {
public DiagnosticsBlock(
string name,
DiagnosticsTreeStyle style = DiagnosticsTreeStyle.whitespace,
bool showName = true,
bool showSeparator = true,
string linePrefix = null,
object value = null,
string description = null,
DiagnosticLevel level = DiagnosticLevel.info,
bool allowTruncate = false,
List<DiagnosticsNode> children = null,
List<DiagnosticsNode> properties = null
) : base(
name: name,
style: style,
showName: showName && name != null,
showSeparator: showSeparator,
linePrefix: linePrefix
) {
_description = description;
_children = children ?? new List<DiagnosticsNode>();
_properties = properties ?? new List<DiagnosticsNode>();
}
readonly List<DiagnosticsNode> _children;
readonly List<DiagnosticsNode> _properties;
new readonly DiagnosticLevel level;
readonly string _description;
public override object valueObject { get; }
readonly bool allowTruncate;
public override List<DiagnosticsNode> getChildren() => _children;
public override List<DiagnosticsNode> getProperties() => _properties;
public override string toDescription(TextTreeConfiguration parentConfiguration = null) => _description;
}
public class MessageProperty : DiagnosticsProperty<object> {

return new List<DiagnosticsNode>();
}
}
public static partial class foundation_ {
public static string shortHash(object o) {
return (o.GetHashCode() & 0xFFFFF).ToString("X").PadLeft(5, '0');

2
com.unity.uiwidgets/Runtime/widgets/binding.cs


}
}
protected override void forgetChild(Element child) {
internal override void forgetChild(Element child) {
D.assert(child == _child);
_child = null;
}

688
com.unity.uiwidgets/Runtime/widgets/framework.cs
文件差异内容过多而无法显示
查看文件

2
com.unity.uiwidgets/Runtime/widgets/layout_builder.cs


}
}
protected override void forgetChild(Element child) {
internal override void forgetChild(Element child) {
D.assert(child == _child);
_child = null;
}

2
com.unity.uiwidgets/Runtime/widgets/list_wheel_scroll_view.cs


}
}
protected override void forgetChild(Element child) {
internal override void forgetChild(Element child) {
_childElements.Remove((int) (child.slot));
}
}

2
com.unity.uiwidgets/Runtime/widgets/sliver.cs


return newChild;
}
protected override void forgetChild(Element child) {
internal override void forgetChild(Element child) {
D.assert(child != null);
D.assert(child.slot != null);
D.assert(_childElements.ContainsKey((int) child.slot));

2
com.unity.uiwidgets/Runtime/widgets/sliver_persistent_header.cs


});
}
protected override void forgetChild(Element child) {
internal override void forgetChild(Element child) {
D.assert(child == this.child);
this.child = null;
}

2
com.unity.uiwidgets/Runtime/widgets/table.cs


}
}
protected override void forgetChild(Element child) {
internal override void forgetChild(Element child) {
_forgottenChildren.Add(child);
}
}

4
com.unity.uiwidgets/Runtime/widgets/widget_inspector.cs


set {
if (_current != value) {
_current = value;
_DebugCreator creator = value.debugCreator as _DebugCreator;
DebugCreator creator = value.debugCreator as DebugCreator;
_currentElement = creator.element;
}
}

void _computeCurrent() {
if (_index < candidates.Count) {
_current = candidates[index];
_currentElement = ((_DebugCreator) _current.debugCreator).element;
_currentElement = ((DebugCreator) _current.debugCreator).element;
}
else {
_current = null;

正在加载...
取消
保存