Unverified Commit 1fd71de0 authored by Ahmed Ashour's avatar Ahmed Ashour Committed by GitHub

Remove superfluous words from comments (#119055)

* Remove superfluous words from comments.

* Revert `win32_window.h`

Which seems to come from `gallery`
parent 0dd63d33
...@@ -157,7 +157,7 @@ class CupertinoAdaptiveTextSelectionToolbar extends StatelessWidget { ...@@ -157,7 +157,7 @@ class CupertinoAdaptiveTextSelectionToolbar extends StatelessWidget {
final List<ContextMenuButtonItem>? buttonItems; final List<ContextMenuButtonItem>? buttonItems;
/// Returns a List of Widgets generated by turning [buttonItems] into the /// Returns a List of Widgets generated by turning [buttonItems] into the
/// the default context menu buttons for Cupertino on the current platform. /// default context menu buttons for Cupertino on the current platform.
/// ///
/// This is useful when building a text selection toolbar with the default /// This is useful when building a text selection toolbar with the default
/// button appearance for the given platform, but where the toolbar and/or the /// button appearance for the given platform, but where the toolbar and/or the
...@@ -165,7 +165,7 @@ class CupertinoAdaptiveTextSelectionToolbar extends StatelessWidget { ...@@ -165,7 +165,7 @@ class CupertinoAdaptiveTextSelectionToolbar extends StatelessWidget {
/// ///
/// Does not build Material buttons. On non-Apple platforms, Cupertino buttons /// Does not build Material buttons. On non-Apple platforms, Cupertino buttons
/// will still be used, because the Cupertino library does not access the /// will still be used, because the Cupertino library does not access the
/// Material library. To get the native-looking buttons on every platform, use /// Material library. To get the native-looking buttons on every platform,
/// use [AdaptiveTextSelectionToolbar.getAdaptiveButtons] in the Material /// use [AdaptiveTextSelectionToolbar.getAdaptiveButtons] in the Material
/// library. /// library.
/// ///
......
...@@ -2561,7 +2561,7 @@ class DiagnosticsProperty<T> extends DiagnosticsNode { ...@@ -2561,7 +2561,7 @@ class DiagnosticsProperty<T> extends DiagnosticsNode {
/// The [showName], [showSeparator], [style], [missingIfNull], and [level] /// The [showName], [showSeparator], [style], [missingIfNull], and [level]
/// arguments must not be null. /// arguments must not be null.
/// ///
/// The [level] argument is just a suggestion and can be overridden if /// The [level] argument is just a suggestion and can be overridden
/// if something else about the property causes it to have a lower or higher /// if something else about the property causes it to have a lower or higher
/// level. For example, if calling `computeValue` throws an exception, [level] /// level. For example, if calling `computeValue` throws an exception, [level]
/// will always return [DiagnosticLevel.error]. /// will always return [DiagnosticLevel.error].
......
...@@ -180,7 +180,7 @@ abstract class DragGestureRecognizer extends OneSequenceGestureRecognizer { ...@@ -180,7 +180,7 @@ abstract class DragGestureRecognizer extends OneSequenceGestureRecognizer {
/// * [allowedButtonsFilter], which decides which button will be allowed. /// * [allowedButtonsFilter], which decides which button will be allowed.
GestureDragCancelCallback? onCancel; GestureDragCancelCallback? onCancel;
/// The minimum distance an input pointer drag must have moved to /// The minimum distance an input pointer drag must have moved
/// to be considered a fling gesture. /// to be considered a fling gesture.
/// ///
/// This value is typically compared with the distance traveled along the /// This value is typically compared with the distance traveled along the
......
...@@ -20,7 +20,7 @@ import 'theme_data.dart'; ...@@ -20,7 +20,7 @@ import 'theme_data.dart';
/// Action chips can be tapped to trigger an action or show progress and /// Action chips can be tapped to trigger an action or show progress and
/// confirmation. For Material 3, a disabled state is supported for Action /// confirmation. For Material 3, a disabled state is supported for Action
/// chips and is specified with [onPressed] being null. For previous versions /// chips and is specified with [onPressed] being null. For previous versions
/// of Material Design, it is recommended to remove the Action chip from the /// of Material Design, it is recommended to remove the Action chip from
/// the interface entirely rather than display a disabled chip. /// the interface entirely rather than display a disabled chip.
/// ///
/// Action chips are displayed after primary content, such as below a card or /// Action chips are displayed after primary content, such as below a card or
......
...@@ -220,7 +220,7 @@ class AdaptiveTextSelectionToolbar extends StatelessWidget { ...@@ -220,7 +220,7 @@ class AdaptiveTextSelectionToolbar extends StatelessWidget {
} }
/// Returns a List of Widgets generated by turning [buttonItems] into the /// Returns a List of Widgets generated by turning [buttonItems] into the
/// the default context menu buttons for the current platform. /// default context menu buttons for the current platform.
/// ///
/// This is useful when building a text selection toolbar with the default /// This is useful when building a text selection toolbar with the default
/// button appearance for the given platform, but where the toolbar and/or the /// button appearance for the given platform, but where the toolbar and/or the
......
...@@ -129,7 +129,7 @@ class _PreferredAppBarSize extends Size { ...@@ -129,7 +129,7 @@ class _PreferredAppBarSize extends Size {
/// ///
/// If the app bar's [actions] contains [TextButton]s, they will not /// If the app bar's [actions] contains [TextButton]s, they will not
/// be visible if their foreground (text) color is the same as the /// be visible if their foreground (text) color is the same as the
/// the app bar's background color. /// app bar's background color.
/// ///
/// The default app bar [backgroundColor] is the overall theme's /// The default app bar [backgroundColor] is the overall theme's
/// [ColorScheme.primary] if the overall theme's brightness is /// [ColorScheme.primary] if the overall theme's brightness is
...@@ -591,7 +591,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -591,7 +591,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
/// See also: /// See also:
/// ///
/// * [actionsIconTheme], which defines the appearance of icons in /// * [actionsIconTheme], which defines the appearance of icons in
/// in the [actions] list. /// the [actions] list.
final IconThemeData? iconTheme; final IconThemeData? iconTheme;
/// {@template flutter.material.appbar.actionsIconTheme} /// {@template flutter.material.appbar.actionsIconTheme}
...@@ -746,7 +746,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -746,7 +746,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
/// ///
/// * [titleTextStyle], which overrides the default text style for the [title]. /// * [titleTextStyle], which overrides the default text style for the [title].
/// * [DefaultTextStyle], which overrides the default text style for all of the /// * [DefaultTextStyle], which overrides the default text style for all of the
/// the widgets in a subtree. /// widgets in a subtree.
final TextStyle? toolbarTextStyle; final TextStyle? toolbarTextStyle;
/// {@template flutter.material.appbar.titleTextStyle} /// {@template flutter.material.appbar.titleTextStyle}
...@@ -764,7 +764,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -764,7 +764,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
/// [title], [leading], and [actions] widgets, also known as the /// [title], [leading], and [actions] widgets, also known as the
/// AppBar's "toolbar". /// AppBar's "toolbar".
/// * [DefaultTextStyle], which overrides the default text style for all of the /// * [DefaultTextStyle], which overrides the default text style for all of the
/// the widgets in a subtree. /// widgets in a subtree.
final TextStyle? titleTextStyle; final TextStyle? titleTextStyle;
/// {@template flutter.material.appbar.systemOverlayStyle} /// {@template flutter.material.appbar.systemOverlayStyle}
......
...@@ -34,7 +34,7 @@ import 'toggleable.dart'; ...@@ -34,7 +34,7 @@ import 'toggleable.dart';
/// ///
/// {@tool dartpad} /// {@tool dartpad}
/// This example shows how you can override the default theme of /// This example shows how you can override the default theme of
/// of a [Checkbox] with a [MaterialStateProperty]. /// a [Checkbox] with a [MaterialStateProperty].
/// In this example, the checkbox's color will be `Colors.blue` when the [Checkbox] /// In this example, the checkbox's color will be `Colors.blue` when the [Checkbox]
/// is being pressed, hovered, or focused. Otherwise, the checkbox's color will /// is being pressed, hovered, or focused. Otherwise, the checkbox's color will
/// be `Colors.red`. /// be `Colors.red`.
......
...@@ -115,7 +115,7 @@ const Duration _kBaseSettleDuration = Duration(milliseconds: 246); ...@@ -115,7 +115,7 @@ const Duration _kBaseSettleDuration = Duration(milliseconds: 246);
/// {@end-tool} /// {@end-tool}
/// ///
/// An open drawer may be closed with a swipe to close gesture, pressing the /// An open drawer may be closed with a swipe to close gesture, pressing the
/// the escape key, by tapping the scrim, or by calling pop route function such as /// escape key, by tapping the scrim, or by calling pop route function such as
/// [Navigator.pop]. For example a drawer item might close the drawer when tapped: /// [Navigator.pop]. For example a drawer item might close the drawer when tapped:
/// ///
/// ```dart /// ```dart
......
...@@ -116,7 +116,7 @@ class FlexibleSpaceBar extends StatefulWidget { ...@@ -116,7 +116,7 @@ class FlexibleSpaceBar extends StatefulWidget {
/// bottom-left or its center. /// bottom-left or its center.
/// ///
/// Typically this property is used to adjust how far the title is /// Typically this property is used to adjust how far the title is
/// is inset from the bottom-left and it is specified along with /// inset from the bottom-left and it is specified along with
/// [centerTitle] false. /// [centerTitle] false.
/// ///
/// By default the value of this property is /// By default the value of this property is
......
...@@ -326,7 +326,7 @@ class RangeSlider extends StatefulWidget { ...@@ -326,7 +326,7 @@ class RangeSlider extends StatefulWidget {
/// the range slider thumb is hovered or dragged. /// the range slider thumb is hovered or dragged.
/// ///
/// If this property is null, [RangeSlider] will use [activeColor] with /// If this property is null, [RangeSlider] will use [activeColor] with
/// with an opacity of 0.12. If null, [SliderThemeData.overlayColor] /// an opacity of 0.12. If null, [SliderThemeData.overlayColor]
/// will be used, otherwise defaults to [ColorScheme.primary] with /// will be used, otherwise defaults to [ColorScheme.primary] with
/// an opacity of 0.12. /// an opacity of 0.12.
final MaterialStateProperty<Color?>? overlayColor; final MaterialStateProperty<Color?>? overlayColor;
......
...@@ -431,7 +431,7 @@ class Slider extends StatefulWidget { ...@@ -431,7 +431,7 @@ class Slider extends StatefulWidget {
/// the slider thumb is focused, hovered, or dragged. /// the slider thumb is focused, hovered, or dragged.
/// ///
/// If this property is null, [Slider] will use [activeColor] with /// If this property is null, [Slider] will use [activeColor] with
/// with an opacity of 0.12, If null, [SliderThemeData.overlayColor] /// an opacity of 0.12, If null, [SliderThemeData.overlayColor]
/// will be used. /// will be used.
/// ///
/// If that is also null, If [ThemeData.useMaterial3] is true, /// If that is also null, If [ThemeData.useMaterial3] is true,
......
...@@ -96,7 +96,7 @@ class SnackBarAction extends StatefulWidget { ...@@ -96,7 +96,7 @@ class SnackBarAction extends StatefulWidget {
/// [SnackBarThemeData.actionTextColor]. /// [SnackBarThemeData.actionTextColor].
/// ///
/// If [textColor] is a [MaterialStateColor], then the text color will be /// If [textColor] is a [MaterialStateColor], then the text color will be
/// be resolved against the set of [MaterialState]s that the action text /// resolved against the set of [MaterialState]s that the action text
/// is in, thus allowing for different colors for states such as pressed, /// is in, thus allowing for different colors for states such as pressed,
/// hovered and others. /// hovered and others.
final Color? textColor; final Color? textColor;
...@@ -366,7 +366,7 @@ class SnackBar extends StatefulWidget { ...@@ -366,7 +366,7 @@ class SnackBar extends StatefulWidget {
/// inverse surface. /// inverse surface.
/// ///
/// If [closeIconColor] is a [MaterialStateColor], then the icon color will be /// If [closeIconColor] is a [MaterialStateColor], then the icon color will be
/// be resolved against the set of [MaterialState]s that the action text /// resolved against the set of [MaterialState]s that the action text
/// is in, thus allowing for different colors for states such as pressed, /// is in, thus allowing for different colors for states such as pressed,
/// hovered and others. /// hovered and others.
final Color? closeIconColor; final Color? closeIconColor;
......
...@@ -1145,7 +1145,7 @@ class ThemeData with Diagnosticable { ...@@ -1145,7 +1145,7 @@ class ThemeData with Diagnosticable {
/// to determine the current platform for the purpose of emulating the /// to determine the current platform for the purpose of emulating the
/// platform behavior (e.g. scrolling or haptic effects). Widgets and render /// platform behavior (e.g. scrolling or haptic effects). Widgets and render
/// objects at lower layers that try to emulate the underlying platform /// objects at lower layers that try to emulate the underlying platform
/// platform can depend on [defaultTargetPlatform] directly, or may require /// can depend on [defaultTargetPlatform] directly, or may require
/// that the target platform be provided as an argument. The /// that the target platform be provided as an argument. The
/// [dart:io.Platform] object should only be used directly when it's critical /// [dart:io.Platform] object should only be used directly when it's critical
/// to actually know the current platform, without any overrides possible (for /// to actually know the current platform, without any overrides possible (for
...@@ -1591,7 +1591,7 @@ class ThemeData with Diagnosticable { ...@@ -1591,7 +1591,7 @@ class ThemeData with Diagnosticable {
/// ///
/// Apps should migrate uses of this property to the theme's [colorScheme] /// Apps should migrate uses of this property to the theme's [colorScheme]
/// [ColorScheme.secondary] color. In cases where a color is needed that /// [ColorScheme.secondary] color. In cases where a color is needed that
/// that contrasts well with the secondary color [ColorScheme.onSecondary] /// contrasts well with the secondary color [ColorScheme.onSecondary]
/// can be used. /// can be used.
@Deprecated( @Deprecated(
'Use colorScheme.secondary instead. ' 'Use colorScheme.secondary instead. '
...@@ -2539,7 +2539,7 @@ class ThemeData with Diagnosticable { ...@@ -2539,7 +2539,7 @@ class ThemeData with Diagnosticable {
/// styles. /// styles.
/// ///
/// In the most basic case, [ThemeData]'s `cupertinoOverrideTheme` is null and /// In the most basic case, [ThemeData]'s `cupertinoOverrideTheme` is null and
/// and descendant Cupertino widgets' styling is derived from the Material theme. /// descendant Cupertino widgets' styling is derived from the Material theme.
/// ///
/// To override individual parts of the Material-derived Cupertino styling, /// To override individual parts of the Material-derived Cupertino styling,
/// `cupertinoOverrideTheme`'s construction parameters can be used. /// `cupertinoOverrideTheme`'s construction parameters can be used.
......
...@@ -80,7 +80,7 @@ class BoxShadow extends ui.Shadow { ...@@ -80,7 +80,7 @@ class BoxShadow extends ui.Shadow {
/// Linearly interpolate between two box shadows. /// Linearly interpolate between two box shadows.
/// ///
/// If either box shadow is null, this function linearly interpolates from a /// If either box shadow is null, this function linearly interpolates from
/// a box shadow that matches the other box shadow in color but has a zero /// a box shadow that matches the other box shadow in color but has a zero
/// offset and a zero blurRadius. /// offset and a zero blurRadius.
/// ///
......
...@@ -468,7 +468,7 @@ class LinearGradient extends Gradient { ...@@ -468,7 +468,7 @@ class LinearGradient extends Gradient {
/// Linearly interpolate between two [LinearGradient]s. /// Linearly interpolate between two [LinearGradient]s.
/// ///
/// If either gradient is null, this function linearly interpolates from a /// If either gradient is null, this function linearly interpolates from
/// a gradient that matches the other gradient in [begin], [end], [stops] and /// a gradient that matches the other gradient in [begin], [end], [stops] and
/// [tileMode] and with the same [colors] but transparent (using [scale]). /// [tileMode] and with the same [colors] but transparent (using [scale]).
/// ///
...@@ -747,7 +747,7 @@ class RadialGradient extends Gradient { ...@@ -747,7 +747,7 @@ class RadialGradient extends Gradient {
/// Linearly interpolate between two [RadialGradient]s. /// Linearly interpolate between two [RadialGradient]s.
/// ///
/// If either gradient is null, this function linearly interpolates from a /// If either gradient is null, this function linearly interpolates from
/// a gradient that matches the other gradient in [center], [radius], [stops] and /// a gradient that matches the other gradient in [center], [radius], [stops] and
/// [tileMode] and with the same [colors] but transparent (using [scale]). /// [tileMode] and with the same [colors] but transparent (using [scale]).
/// ///
......
...@@ -169,7 +169,7 @@ class SliverMultiBoxAdaptorParentData extends SliverLogicalParentData with Conta ...@@ -169,7 +169,7 @@ class SliverMultiBoxAdaptorParentData extends SliverLogicalParentData with Conta
/// been laid out during that layout pass. /// been laid out during that layout pass.
/// * Children cannot be added except during a call to [childManager], and /// * Children cannot be added except during a call to [childManager], and
/// then only if there is no child corresponding to that index (or the child /// then only if there is no child corresponding to that index (or the child
/// child corresponding to that index was first removed). /// corresponding to that index was first removed).
/// ///
/// See also: /// See also:
/// ///
......
...@@ -317,7 +317,7 @@ class DraggableScrollableSheet extends StatefulWidget { ...@@ -317,7 +317,7 @@ class DraggableScrollableSheet extends StatefulWidget {
/// The initial fractional value of the parent container's height to use when /// The initial fractional value of the parent container's height to use when
/// displaying the widget. /// displaying the widget.
/// ///
/// Rebuilding the sheet with a new [initialChildSize] will only move the /// Rebuilding the sheet with a new [initialChildSize] will only move
/// the sheet to the new value if the sheet has not yet been dragged since it /// the sheet to the new value if the sheet has not yet been dragged since it
/// was first built or since the last call to [DraggableScrollableActuator.reset]. /// was first built or since the last call to [DraggableScrollableActuator.reset].
/// ///
......
...@@ -3966,7 +3966,7 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien ...@@ -3966,7 +3966,7 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien
// `x ∉ getTextBoundaryAt(x)`. In case `caretOffset` points to one such // `x ∉ getTextBoundaryAt(x)`. In case `caretOffset` points to one such
// control character, we define that these control characters themselves are // control character, we define that these control characters themselves are
// still part of the previous line, but also exclude them from the // still part of the previous line, but also exclude them from the
// the line boundary range since they're non-printing. IOW, no additional // line boundary range since they're non-printing. IOW, no additional
// processing needed since the LineBoundary class does exactly that. // processing needed since the LineBoundary class does exactly that.
return forward return forward
? TextPosition(offset: textBoundary.getTrailingTextBoundaryAt(caretOffset) ?? _value.text.length, affinity: TextAffinity.upstream) ? TextPosition(offset: textBoundary.getTrailingTextBoundaryAt(caretOffset) ?? _value.text.length, affinity: TextAffinity.upstream)
......
...@@ -318,8 +318,8 @@ class _LocalizationsScope extends InheritedWidget { ...@@ -318,8 +318,8 @@ class _LocalizationsScope extends InheritedWidget {
/// } /// }
/// ``` /// ```
/// ///
/// Each delegate can be viewed as a factory for objects that encapsulate a /// Each delegate can be viewed as a factory for objects that encapsulate a set
/// a set of localized resources. These objects are retrieved with /// of localized resources. These objects are retrieved with
/// by runtime type with [Localizations.of]. /// by runtime type with [Localizations.of].
/// ///
/// The [WidgetsApp] class creates a [Localizations] widget so most apps /// The [WidgetsApp] class creates a [Localizations] widget so most apps
......
...@@ -59,7 +59,7 @@ class PerformanceOverlay extends LeafRenderObjectWidget { ...@@ -59,7 +59,7 @@ class PerformanceOverlay extends LeafRenderObjectWidget {
/// For example, if you want a trace of all pictures that could not be /// For example, if you want a trace of all pictures that could not be
/// rendered by the rasterizer within the frame boundary (and hence caused /// rendered by the rasterizer within the frame boundary (and hence caused
/// jank), specify 1. Specifying 2 will trace all pictures that took more /// jank), specify 1. Specifying 2 will trace all pictures that took more
/// more than 2 frame intervals to render. Adjust this value to only capture /// than 2 frame intervals to render. Adjust this value to only capture
/// the particularly expensive pictures while skipping the others. Specifying /// the particularly expensive pictures while skipping the others. Specifying
/// 0 disables all capture. /// 0 disables all capture.
/// ///
......
...@@ -405,8 +405,8 @@ class ScrollPhysics { ...@@ -405,8 +405,8 @@ class ScrollPhysics {
); );
} }
/// The minimum distance an input pointer drag must have moved to /// The minimum distance an input pointer drag must have moved to be
/// to be considered a scroll fling gesture. /// considered a scroll fling gesture.
/// ///
/// This value is typically compared with the distance traveled along the /// This value is typically compared with the distance traveled along the
/// scrolling axis. /// scrolling axis.
......
...@@ -704,7 +704,7 @@ void main() { ...@@ -704,7 +704,7 @@ void main() {
} }
// End the fling by reversing direction. This should cause not cause // End the fling by reversing direction. This should cause not cause
// a change to the selected tab, everything should just settle back to // a change to the selected tab, everything should just settle back to
// to where it started. // where it started.
for (int index = 0; index > 50; index += 1) { for (int index = 0; index > 50; index += 1) {
await gesture.moveBy(const Offset(10.0, 0.0)); await gesture.moveBy(const Offset(10.0, 0.0));
await tester.pump(const Duration(milliseconds: 1)); await tester.pump(const Duration(milliseconds: 1));
......
...@@ -11039,7 +11039,7 @@ void main() { ...@@ -11039,7 +11039,7 @@ void main() {
expect( expect(
tester.getSize(find.byType(TextField)), tester.getSize(find.byType(TextField)),
// When the strut fontSize is larger than a provided TextStyle, the // When the strut fontSize is larger than a provided TextStyle, the
// the strut's height takes precedence. // strut's height takes precedence.
const Size(800, 78), const Size(800, 78),
); );
}, },
......
...@@ -60,7 +60,7 @@ void main() { ...@@ -60,7 +60,7 @@ void main() {
expect(friction.dx(1.0), moreOrLessEquals(endVelocity)); expect(friction.dx(1.0), moreOrLessEquals(endVelocity));
// Same scenario as above except that the velocities are // Same scenario as above except that the velocities are
// are negative. // negative.
startPosition = 1000.0; startPosition = 1000.0;
startVelocity = -500.0; startVelocity = -500.0;
f = FrictionSimulation(0.025, 1000.0, -500.0); f = FrictionSimulation(0.025, 1000.0, -500.0);
......
...@@ -339,7 +339,7 @@ List<String> _wrapTextAsLines(String text, { ...@@ -339,7 +339,7 @@ List<String> _wrapTextAsLines(String text, {
final int effectiveLength = math.max(columnWidth - start, kMinColumnWidth); final int effectiveLength = math.max(columnWidth - start, kMinColumnWidth);
for (final String line in text.split('\n')) { for (final String line in text.split('\n')) {
// If the line is short enough, even with ANSI codes, then we can just add // If the line is short enough, even with ANSI codes, then we can just add
// add it and move on. // it and move on.
if (line.length <= effectiveLength || !shouldWrap) { if (line.length <= effectiveLength || !shouldWrap) {
result.add(line); result.add(line);
continue; continue;
......
...@@ -335,7 +335,7 @@ class Parser { ...@@ -335,7 +335,7 @@ class Parser {
parsingStack.addAll(grammarRule.reversed); parsingStack.addAll(grammarRule.reversed);
// For tree construction, add nodes to the parent until the parent has all // For tree construction, add nodes to the parent until the parent has all
// all the children it is expecting. // the children it is expecting.
parent.children.add(node); parent.children.add(node);
if (parent.isFull) { if (parent.isFull) {
treeTraversalStack.removeLast(); treeTraversalStack.removeLast();
......
...@@ -86,7 +86,7 @@ class Template { ...@@ -86,7 +86,7 @@ class Template {
from: templateFiles[entity]!.absolute.path); from: templateFiles[entity]!.absolute.path);
if (relativePath.contains(templateExtension)) { if (relativePath.contains(templateExtension)) {
// If '.tmpl' appears anywhere within the path of this entity, it is // If '.tmpl' appears anywhere within the path of this entity, it is
// is a candidate for rendering. This catches cases where the folder // a candidate for rendering. This catches cases where the folder
// itself is a template. // itself is a template.
_templateFilePaths[relativePath] = fileSystem.path.absolute(entity.path); _templateFilePaths[relativePath] = fileSystem.path.absolute(entity.path);
} }
......
...@@ -52,7 +52,7 @@ class WebTestCompiler { ...@@ -52,7 +52,7 @@ class WebTestCompiler {
LanguageVersion languageVersion = LanguageVersion(2, 8); LanguageVersion languageVersion = LanguageVersion(2, 8);
late final String platformDillName; late final String platformDillName;
// TODO(zanderso): to support autodetect this would need to partition the source code into a // TODO(zanderso): to support autodetect this would need to partition the source code into
// a sound and unsound set and perform separate compilations // a sound and unsound set and perform separate compilations
final List<String> extraFrontEndOptions = List<String>.of(buildInfo.extraFrontEndOptions); final List<String> extraFrontEndOptions = List<String>.of(buildInfo.extraFrontEndOptions);
if (buildInfo.nullSafetyMode == NullSafetyMode.unsound || buildInfo.nullSafetyMode == NullSafetyMode.autodetect) { if (buildInfo.nullSafetyMode == NullSafetyMode.unsound || buildInfo.nullSafetyMode == NullSafetyMode.autodetect) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment