浏览代码

codeStyle fix: LogError -> logError

/main
xingwei.zhu 6 年前
当前提交
b182f685
共有 7 个文件被更改,包括 8 次插入8 次删除
  1. 2
      Runtime/async/coroutine.cs
  2. 2
      Runtime/async/microtask_queue.cs
  3. 4
      Runtime/async/timer.cs
  4. 2
      Runtime/foundation/assertions.cs
  5. 2
      Runtime/foundation/debug.cs
  6. 2
      Runtime/gestures/binding.cs
  7. 2
      Runtime/gestures/pointer_router.cs

2
Runtime/async/coroutine.cs


callbackNode.callback();
}
catch (Exception ex) {
D.LogError("Failed to execute callback in BackgroundCallbacks: ", ex);
D.logError("Failed to execute callback in BackgroundCallbacks: ", ex);
}
if (!callbackNode.isDone) {

2
Runtime/async/microtask_queue.cs


action();
}
catch (Exception ex) {
D.LogError("Error to execute microtask: ", ex);
D.logError("Error to execute microtask: ", ex);
}
}
}

4
Runtime/async/timer.cs


callback();
}
catch (Exception ex) {
D.LogError("Error to execute runInMain callback: ", ex);
D.logError("Error to execute runInMain callback: ", ex);
}
}
}

this._callback();
}
catch (Exception ex) {
D.LogError("Error to execute timer callback: ", ex);
D.logError("Error to execute timer callback: ", ex);
}
if (this.periodic) {

2
Runtime/foundation/assertions.cs


return;
}
D.LogError(details.ToString(), details.exception);
D.logError(details.ToString(), details.exception);
}
public static IEnumerable<string> defaultStackFilter(IEnumerable<string> frames) {

2
Runtime/foundation/debug.cs


namespace Unity.UIWidgets.foundation {
public static class D {
public static void LogError(string message, Exception ex = null) {
public static void logError(string message, Exception ex = null) {
Debug.LogException(new ReportError(message, ex));
}
[Conditional("UIWidgets_DEBUG")]

2
Runtime/gestures/binding.cs


entry.target.handleEvent(evt, entry);
}
catch (Exception ex) {
D.LogError("Error while dispatching a pointer event: ", ex);
D.logError("Error while dispatching a pointer event: ", ex);
}
}
}

2
Runtime/gestures/pointer_router.cs


route(evt);
}
catch (Exception ex) {
D.LogError("Error while routing a pointer event: ", ex);
D.logError("Error while routing a pointer event: ", ex);
}
}

正在加载...
取消
保存