浏览代码

make String => string

/zgh-devtools
xingweizhu 4 年前
当前提交
39d96b18
共有 18 个文件被更改,包括 29 次插入29 次删除
  1. 2
      com.unity.uiwidgets/Runtime/animation/curves.cs
  2. 2
      com.unity.uiwidgets/Runtime/async2/zone.cs
  3. 2
      com.unity.uiwidgets/Runtime/cupertino/date_picker.cs
  4. 2
      com.unity.uiwidgets/Runtime/foundation/assertions.cs
  5. 4
      com.unity.uiwidgets/Runtime/material/bottom_sheet.cs
  6. 2
      com.unity.uiwidgets/Runtime/material/pickers/date_picker_dialog.cs
  7. 2
      com.unity.uiwidgets/Runtime/material/selectable_text.cs
  8. 4
      com.unity.uiwidgets/Runtime/painting/alignment.cs
  9. 2
      com.unity.uiwidgets/Runtime/painting/border_radius.cs
  10. 2
      com.unity.uiwidgets/Runtime/painting/box_border.cs
  11. 6
      com.unity.uiwidgets/Runtime/painting/text_style.cs
  12. 2
      com.unity.uiwidgets/Runtime/rendering/flex.cs
  13. 6
      com.unity.uiwidgets/Runtime/services/asset_bundle.cs
  14. 2
      com.unity.uiwidgets/Runtime/ui2/compositing.cs
  15. 2
      com.unity.uiwidgets/Runtime/ui2/window.cs
  16. 2
      com.unity.uiwidgets/Runtime/widgets/focus_manager.cs
  17. 12
      com.unity.uiwidgets/Runtime/widgets/framework.cs
  18. 2
      com.unity.uiwidgets/Runtime/widgets/title.cs

2
com.unity.uiwidgets/Runtime/animation/curves.cs


start: 0.0f, end: 1.0f, tolerance: 1e-12f).ToList();
}
static readonly List<String> _debugAssertReasons = new List<String>();
static readonly List<string> _debugAssertReasons = new List<string>();
readonly List<Curve2DSample> _precomputedSamples;

2
com.unity.uiwidgets/Runtime/async2/zone.cs


return handler(implementation.zone, parentDelegate, this, duration, f);
}
public override void print(String line) {
public override void print(string line) {
var implementation = _print;
ZoneDelegate parentDelegate = async_._parentDelegate(implementation.zone);
PrintHandler handler = implementation.function;

2
com.unity.uiwidgets/Runtime/cupertino/date_picker.cs


numberLabelHeight = textPainter.height;
numberLabelBaseline = textPainter.computeDistanceToActualBaseline(TextBaseline.alphabetic);
}
Widget _buildLabel(String text, EdgeInsetsDirectional pickerPadding) {
Widget _buildLabel(string text, EdgeInsetsDirectional pickerPadding) {
EdgeInsetsDirectional padding = EdgeInsetsDirectional.only(
start: numberLabelWidth
+ CupertinoDatePickerUtils._kTimerPickerLabelPadSize

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


internal abstract class _ErrorDiagnostic : DiagnosticsProperty<List<object>> {
internal _ErrorDiagnostic(
String message,
string message,
DiagnosticsTreeStyle style = DiagnosticsTreeStyle.flat,
DiagnosticLevel level = DiagnosticLevel.info
) : base(

4
com.unity.uiwidgets/Runtime/material/bottom_sheet.cs


class _ModalBottomSheetState<T> : State<_ModalBottomSheet<T>> {
ParametricCurve<float> animationCurve = material_._modalBottomSheetCurve;
String _getRouteLabel(MaterialLocalizations localizations) {
string _getRouteLabel(MaterialLocalizations localizations) {
switch (Theme.of(context).platform) {
case RuntimePlatform.IPhonePlayer:
case RuntimePlatform.OSXEditor:

D.assert(material_.debugCheckHasMaterialLocalizations(context));
MediaQueryData mediaQuery = MediaQuery.of(context);
MaterialLocalizations localizations = MaterialLocalizations.of(context);
String routeLabel = _getRouteLabel(localizations);
string routeLabel = _getRouteLabel(localizations);
return new AnimatedBuilder(
animation: widget.route.animation,

2
com.unity.uiwidgets/Runtime/material/pickers/date_picker_dialog.cs


public static readonly Size _inputLandscapeDialogSize = new Size(496f, 160.0f);
public static readonly TimeSpan _dialogSizeAnimationDuration = new TimeSpan(0, 0, 0, 0, 200);
public Future<DateTime> showDatePicker(
public static Future<DateTime> showDatePicker(
BuildContext context,
DateTime initialDate,
DateTime firstDate,

2
com.unity.uiwidgets/Runtime/material/selectable_text.cs


public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
properties.add( new DiagnosticsProperty<String>("data", data, defaultValue: null));
properties.add( new DiagnosticsProperty<string>("data", data, defaultValue: null));
properties.add( new DiagnosticsProperty<FocusNode>("focusNode", focusNode, defaultValue: null));
properties.add( new DiagnosticsProperty<TextStyle>("style", style, defaultValue: null));
properties.add( new DiagnosticsProperty<bool>("autofocus", autofocus, defaultValue: false));

4
com.unity.uiwidgets/Runtime/painting/alignment.cs


}
internal static String _stringify(float x, float y) {
internal static string _stringify(float x, float y) {
if (x == -1.0f && y == -1.0f)
return "topLeft";
if (x == 0.0f && y == -1.0f)

return null;
}
internal static String _stringify(double start, double y) {
internal static string _stringify(double start, double y) {
if (start == -1.0f && y == -1.0f)
return "AlignmentDirectional.topStart";
if (start == 0.0f && y == -1.0f)

2
com.unity.uiwidgets/Runtime/painting/border_radius.cs


public abstract BorderRadius resolve(TextDirection? textDirection);
public override string ToString() {
String visual = null, logical = null;
string visual = null, logical = null;
if (_topLeft == _topRight &&
_topRight == _bottomLeft &&
_bottomLeft == _bottomRight) {

2
com.unity.uiwidgets/Runtime/painting/box_border.cs


public override string ToString() {
List<String> arguments = new List<string>();
List<string> arguments = new List<string>();
if
(top != BorderSide.none) {
arguments.Add("top: $top");

6
com.unity.uiwidgets/Runtime/painting/text_style.cs


int? maxLines = null,
TextHeightBehavior textHeightBehavior = null,
Locale locale = null,
String fontFamily = null,
string fontFamily = null,
float? fontSize = null,
FontWeight fontWeight = null,
FontStyle? fontStyle = null,

TextAlign? textAlign = null,
TextDirection? textDirection = null,
float textScaleFactor = 1.0f,
String ellipsis = null,
string ellipsis = null,
String fontFamily = null,
string fontFamily = null,
float? fontSize = null,
FontWeight fontWeight = null,
FontStyle? fontStyle = null,

2
com.unity.uiwidgets/Runtime/rendering/flex.cs


public override string toStringShort() {
String header = base.toStringShort();
string header = base.toStringShort();
if (_overflow is float && _hasOverflow)
header += " OVERFLOWING";
return header;

6
com.unity.uiwidgets/Runtime/services/asset_bundle.cs


});
}
public abstract Future<T> loadStructuredData<T>(String key, Func<string, Future<T>> parser);
public abstract Future<T> loadStructuredData<T>(string key, Func<string, Future<T>> parser);
public virtual void evict(String key) {
public virtual void evict(string key) {
}
public override string ToString() => $"{foundation_.describeIdentity(this)}()";

return base.loadString(key);
}
public override Future<T> loadStructuredData<T>(String key, Func<string, Future<T>> parser) {
public override Future<T> loadStructuredData<T>(string key, Func<string, Future<T>> parser) {
D.assert(key != null);
D.assert(parser != null);
if (_structuredDataCache.ContainsKey(key))

2
com.unity.uiwidgets/Runtime/ui2/compositing.cs


return true;
}
bool _debugCheckCanBeUsedAsOldLayer(_EngineLayerWrapper layer, String methodName) {
bool _debugCheckCanBeUsedAsOldLayer(_EngineLayerWrapper layer, string methodName) {
D.assert(() => {
if (layer == null) {
return true;

2
com.unity.uiwidgets/Runtime/ui2/window.cs


public bool highContrast => (_kHighContrastIndex & _index) != 0;
public override string ToString() {
List<String> features = new List<String>();
List<string> features = new List<string>();
if (accessibleNavigation)
features.Add("accessibleNavigation");
if (invertColors)

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


properties.add(new DiagnosticsProperty<FocusNode>("nextFocus", _markedForFocus, defaultValue: null));
Element element = primaryFocus?.context as Element;
if (element != null) {
properties.add(new DiagnosticsProperty<String>("primaryFocusCreator", element.debugGetCreatorChain(20)));
properties.add(new DiagnosticsProperty<string>("primaryFocusCreator", element.debugGetCreatorChain(20)));
}
}
}

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


void visitChildElements(ElementVisitor visitor);
DiagnosticsNode describeElement(String name, DiagnosticsTreeStyle style = DiagnosticsTreeStyle.errorProperty);
DiagnosticsNode describeElement(string name, DiagnosticsTreeStyle style = DiagnosticsTreeStyle.errorProperty);
DiagnosticsNode describeWidget(String name, DiagnosticsTreeStyle style = DiagnosticsTreeStyle.errorProperty);
DiagnosticsNode describeWidget(string name, DiagnosticsTreeStyle style = DiagnosticsTreeStyle.errorProperty);
DiagnosticsNode describeOwnershipChain(String name);
DiagnosticsNode describeOwnershipChain(string name);
}
public class BuildOwner {

return information;
}
public static DiagnosticsNode describeElements(String name, IEnumerable<Element> elements) {
public static DiagnosticsNode describeElements(string name, IEnumerable<Element> elements) {
return new DiagnosticsBlock(
name: name,
children: elements.Select((Element element) => new DiagnosticsProperty<Element>("", element))

return new DiagnosticsProperty<Element>(name, this, style: style);
}
public DiagnosticsNode describeWidget(String name,
public DiagnosticsNode describeWidget(string name,
public DiagnosticsNode describeOwnershipChain(String name) {
public DiagnosticsNode describeOwnershipChain(string name) {
return new StringProperty(name, debugGetCreatorChain(10));
}

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


this.title = title;
}
public readonly String title;
public readonly string title;
public readonly Color color;
public readonly Widget child;
public override Widget build(BuildContext context) {

正在加载...
取消
保存