浏览代码

Fix warnings.

/main
Yuncong Zhang 6 年前
当前提交
38057089
共有 9 个文件被更改,包括 15 次插入3 次删除
  1. 2
      Runtime/debugger/diagnostics.cs
  2. 1
      Runtime/flow/physical_shape_layer.cs
  3. 2
      Runtime/foundation/key.cs
  4. 1
      Runtime/material/slider_theme.cs
  5. 1
      Runtime/painting/fractional_offset.cs
  6. 6
      Runtime/rendering/object.mixin.gen.cs
  7. 1
      Runtime/rendering/paragraph.cs
  8. 3
      Tests/Editor/SceneViewTests.cs
  9. 1
      Tests/Editor/Widgets.cs

2
Runtime/debugger/diagnostics.cs


}
}
}
#pragma warning restore 0659
#pragma warning restore 0661
public class InspectorInstanceRef : IEquatable<InspectorInstanceRef> {
public readonly string id;

1
Runtime/flow/physical_shape_layer.cs


Path _path;
#pragma warning disable 0414
bool _isRect;
#pragma warning restore 0414
Rect _frameRRect;
Clip _clip_behavior;

2
Runtime/foundation/key.cs


return !Equals(left, right);
}
}
#pragma warning restore 0660
#pragma warning restore 0661
public abstract class LocalKey : Key {
protected LocalKey() {

1
Runtime/material/slider_theme.cs


outlinePaint.strokeWidth = 1.0f;
canvas.drawRect(valueRect, outlinePaint);
return true;
#pragma warning restore 0162
});
_addArc(

1
Runtime/painting/fractional_offset.cs


public static readonly FractionalOffset bottomCenter = new FractionalOffset(0.5f, 1.0f);
public static readonly FractionalOffset bottomRight = new FractionalOffset(1.0f, 1.0f);
#pragma warning restore 0108
public static Alignment operator -(FractionalOffset a, Alignment b) {
if (!(b is FractionalOffset)) {

6
Runtime/rendering/object.mixin.gen.cs


namespace Unity.UIWidgets.rendering {
public abstract class RenderObjectWithChildMixinRenderObject<ChildType> : RenderObject, RenderObjectWithChildMixin<ChildType>, RenderObjectWithChildMixin where ChildType : RenderObject {
public bool debugValidateChild(RenderObject child) {
public virtual bool debugValidateChild(RenderObject child) {
D.assert(() => {
if (!(child is ChildType)) {
throw new UIWidgetsError(

public abstract class RenderObjectWithChildMixinRenderBox<ChildType> : RenderBox, RenderObjectWithChildMixin<ChildType>, RenderObjectWithChildMixin where ChildType : RenderObject {
public bool debugValidateChild(RenderObject child) {
public virtual bool debugValidateChild(RenderObject child) {
D.assert(() => {
if (!(child is ChildType)) {
throw new UIWidgetsError(

get { return this._childCount; }
}
public new bool debugValidateChild(RenderObject child) {
public override bool debugValidateChild(RenderObject child) {
D.assert(() => {
if (!(child is ChildType)) {
throw new UIWidgetsError(

1
Runtime/rendering/paragraph.cs


#pragma warning disable 0414
bool _pointerHoverInside;
#pragma warning restore 0414
bool _hasHoverRecognizer;
MouseTrackerAnnotation _hoverAnnotation;

3
Tests/Editor/SceneViewTests.cs


onPreSceneGUIDelegate += OnPreSceneGUI;
#pragma warning disable 0618
SceneView.onSceneGUIDelegate += OnSceneGUI;
#pragma warning restore 0618
EditorApplication.update += Update;
SceneView.RepaintAll();

onPreSceneGUIDelegate -= OnPreSceneGUI;
#pragma warning disable 0618
SceneView.onSceneGUIDelegate -= OnSceneGUI;
#pragma warning restore 0618
EditorApplication.update -= Update;
SceneView.RepaintAll();
}

field.SetValue(null, value);
}
}
#pragma warning restore 0618
static Func<Widget>[] _options;

1
Tests/Editor/Widgets.cs


float _offsetY = 0.0f;
#pragma warning disable 0414
int _index = -1;
#pragma warning restore 0414
Widget _buildHeader(BuildContext context) {
return new Container(

正在加载...
取消
保存