浏览代码

fix compile bugs

/siyaoH-1.17-PlatformMessage
Shiyun Wen 4 年前
当前提交
edcd04c9
共有 6 个文件被更改,包括 28 次插入28 次删除
  1. 14
      com.unity.uiwidgets/Runtime/foundation/diagnostics.cs
  2. 26
      com.unity.uiwidgets/Runtime/rendering/proxy_box.cs
  3. 4
      com.unity.uiwidgets/Runtime/widgets/DirectionalFocusTraversalPolicy.mixin.gen.cs
  4. 4
      com.unity.uiwidgets/Runtime/widgets/DirectionalFocusTraversalPolicy.mixin.njk
  5. 2
      com.unity.uiwidgets/Runtime/widgets/fade_in_image.cs
  6. 6
      com.unity.uiwidgets/Runtime/widgets/focus_traversal.cs

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


public interface DiagnosticableTreeMixin : IDiagnosticable{
public string toString(DiagnosticLevel minLevel = DiagnosticLevel.info);
public string toStringShallow(
string toString(DiagnosticLevel minLevel = DiagnosticLevel.info);
string toStringShallow(
public string toStringDeep(
string toStringDeep(
public string toStringShort();
string toStringShort();
public DiagnosticsNode toDiagnosticsNode(string name = null, DiagnosticsTreeStyle style = DiagnosticsTreeStyle.sparse);
public List<DiagnosticsNode> debugDescribeChildren();
public void debugFillProperties(DiagnosticPropertiesBuilder properties);
DiagnosticsNode toDiagnosticsNode(string name = null, DiagnosticsTreeStyle style = DiagnosticsTreeStyle.sparse);
List<DiagnosticsNode> debugDescribeChildren();
void debugFillProperties(DiagnosticPropertiesBuilder properties);
}

26
com.unity.uiwidgets/Runtime/rendering/proxy_box.cs


public interface RenderAnimatedOpacityMixin<T> : RenderObjectWithChildMixin<T> where T : RenderObject {
int _alpha { get; }
public new bool alwaysNeedsCompositing {
int _alpha { get; set; }
bool alwaysNeedsCompositing {
bool _currentlyNeedsCompositing { get; }
public Animation<float> opacity {
bool _currentlyNeedsCompositing { get; set; }
Animation<float> opacity {
Animation<float> _opacity { get; }
Animation<float> _opacity { get; set; }
public bool alwaysIncludeSemantics {
bool alwaysIncludeSemantics {
bool _alwaysIncludeSemantics { get; }
public void attach(PipelineOwner owner);
public void detach();
bool _alwaysIncludeSemantics { get; set; }
void attach(PipelineOwner owner);
void detach();
public void _updateOpacity();
public void paint(PaintingContext context, Offset offset);
public void visitChildrenForSemantics(RenderObjectVisitor visitor);
public void debugFillProperties(DiagnosticPropertiesBuilder properties);
void _updateOpacity();
void paint(PaintingContext context, Offset offset);
void visitChildrenForSemantics(RenderObjectVisitor visitor);
void debugFillProperties(DiagnosticPropertiesBuilder properties);
}

4
com.unity.uiwidgets/Runtime/widgets/DirectionalFocusTraversalPolicy.mixin.gen.cs


return false;
}
bool popOrInvalidate(TraversalDirection direction) {
bool popOrInvalidate(TraversalDirection _direction) {
FocusNode lastNode = policyData.history.removeLast().node;
if (Scrollable.of(lastNode.context) != Scrollable.of(FocusManagerUtils.primaryFocus.context)) {
invalidateScopeData(nearestScope);

switch (direction) {
switch (_direction) {
case TraversalDirection.up:
case TraversalDirection.left:
alignmentPolicy = ScrollPositionAlignmentPolicy.keepVisibleAtStart;

4
com.unity.uiwidgets/Runtime/widgets/DirectionalFocusTraversalPolicy.mixin.njk


return false;
}
bool popOrInvalidate(TraversalDirection direction) {
bool popOrInvalidate(TraversalDirection _direction) {
FocusNode lastNode = policyData.history.removeLast().node;
if (Scrollable.of(lastNode.context) != Scrollable.of(FocusManagerUtils.primaryFocus.context)) {
invalidateScopeData(nearestScope);

switch (direction) {
switch (_direction) {
case TraversalDirection.up:
case TraversalDirection.left:
alignmentPolicy = ScrollPositionAlignmentPolicy.keepVisibleAtStart;

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


Widget result = _image(
image: image,
errorBuilder: imageErrorBuilder,
frameBuilder: (BuildContext context, Widget child, int frame, bool wasSynchronouslyLoaded) => {
frameBuilder: (BuildContext context1, Widget child, int frame, bool wasSynchronouslyLoaded) => {
if (wasSynchronouslyLoaded)
return child;
return new _AnimatedFadeOutFadeIn(

6
com.unity.uiwidgets/Runtime/widgets/focus_traversal.cs


FocusTravesalUtils.mergeSort<_ReadingOrderSortData>(candidates, compare: (_ReadingOrderSortData a, _ReadingOrderSortData b) => a.rect.top.CompareTo(b.rect.top));
_ReadingOrderSortData topmost = candidates.First();
List<_ReadingOrderSortData> inBand(_ReadingOrderSortData current, IEnumerable<_ReadingOrderSortData> candidates) {
List<_ReadingOrderSortData> inBand(_ReadingOrderSortData current, IEnumerable<_ReadingOrderSortData> _candidates) {
return candidates.Where((_ReadingOrderSortData item)=> {
return _candidates.Where((_ReadingOrderSortData item)=> {
return !item.rect.intersect(band).isEmpty;
}).ToList();
}

public interface Comparable<T> {
public int compareTo(T other);
int compareTo(T other);
int compare(Comparable<T> a, T b);
}

正在加载...
取消
保存