浏览代码

Merge pull request #229 from Unity-Technologies/fix_ide

update for ide
/main
GitHub 3 年前
当前提交
fe88a0b6
共有 4 个文件被更改,包括 13 次插入13 次删除
  1. 12
      com.unity.uiwidgets/Runtime/foundation/assertions.cs
  2. 2
      com.unity.uiwidgets/Runtime/widgets/actions.cs
  3. 10
      com.unity.uiwidgets/Runtime/widgets/framework.cs
  4. 2
      com.unity.uiwidgets/Runtime/widgets/inherited_notifier.cs

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


public delegate IEnumerable<DiagnosticsNode> DiagnosticPropertiesTransformer(IEnumerable<DiagnosticsNode> properties);
public delegate IEnumerable<DiagnosticsNode> InformationCollector();
internal abstract class _ErrorDiagnostic : DiagnosticsProperty<List<object>> {
public abstract class _ErrorDiagnostic : DiagnosticsProperty<List<object>> {
internal _ErrorDiagnostic(
string message,
DiagnosticsTreeStyle style = DiagnosticsTreeStyle.flat,

return string.Join("", value);
}
}
internal class ErrorDescription : _ErrorDiagnostic {
public class ErrorDescription : _ErrorDiagnostic {
public ErrorDescription(string message) : base(message, level: DiagnosticLevel.info) {
}

internal class ErrorSummary : _ErrorDiagnostic {
public class ErrorSummary : _ErrorDiagnostic {
public ErrorSummary(string message) : base(message, level: DiagnosticLevel.summary) {
}

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


public class CallbackAction : UiWidgetAction {
public CallbackAction(LocalKey intentKey, OnInvokeCallback onInvoke) : base(intentKey: intentKey) {
public CallbackAction(LocalKey intentKey = null, OnInvokeCallback onInvoke = null) : base(intentKey: intentKey) {
D.assert(onInvoke != null);
this.onInvoke = onInvoke;
}

10
com.unity.uiwidgets/Runtime/widgets/framework.cs


get { return _debugStateLockLevel > 0; }
}
internal bool debugBuilding {
public bool debugBuilding {
get { return _debugBuilding; }
}
bool _debugBuilding = false;

notifyClients(oldWidget);
}
protected abstract void notifyClients(ProxyWidget oldWidget);
public abstract void notifyClients(ProxyWidget oldWidget);
}
public class ParentDataElement : ProxyElement {

_applyParentData(newWidget);
}
protected override void notifyClients(ProxyWidget oldWidget) {
public override void notifyClients(ProxyWidget oldWidget) {
_applyParentData((ParentDataWidget) widget);
}
}

_applyParentData(newWidget);
}
protected override void notifyClients(ProxyWidget oldWidget) {
public override void notifyClients(ProxyWidget oldWidget) {
_applyParentData((ParentDataWidget<T>) widget);
}

}
}
protected override void notifyClients(ProxyWidget oldWidgetRaw) {
public override void notifyClients(ProxyWidget oldWidgetRaw) {
var oldWidget = (InheritedWidget) oldWidgetRaw;
D.assert(_debugCheckOwnerBuildTargetExists("notifyClients"));

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


markNeedsBuild();
}
protected override void notifyClients(ProxyWidget oldWidget) {
public override void notifyClients(ProxyWidget oldWidget) {
oldWidget = (InheritedNotifier<T>) oldWidget;
base.notifyClients(oldWidget);
_dirty = false;

正在加载...
取消
保存