Remove superfluous words from comments (#119055)

* Remove superfluous words from comments.

* Revert `win32_window.h`

Which seems to come from `gallery`
This commit is contained in:
Ahmed Ashour
2023-01-25 21:23:24 +01:00
committed by GitHub
parent 0dd63d3310
commit 1fd71de0c5
28 changed files with 38 additions and 38 deletions

View File

@@ -339,7 +339,7 @@ List<String> _wrapTextAsLines(String text, {
final int effectiveLength = math.max(columnWidth - start, kMinColumnWidth);
for (final String line in text.split('\n')) {
// 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) {
result.add(line);
continue;

View File

@@ -335,7 +335,7 @@ class Parser {
parsingStack.addAll(grammarRule.reversed);
// 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);
if (parent.isFull) {
treeTraversalStack.removeLast();

View File

@@ -86,7 +86,7 @@ class Template {
from: templateFiles[entity]!.absolute.path);
if (relativePath.contains(templateExtension)) {
// 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.
_templateFilePaths[relativePath] = fileSystem.path.absolute(entity.path);
}

View File

@@ -52,7 +52,7 @@ class WebTestCompiler {
LanguageVersion languageVersion = LanguageVersion(2, 8);
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
final List<String> extraFrontEndOptions = List<String>.of(buildInfo.extraFrontEndOptions);
if (buildInfo.nullSafetyMode == NullSafetyMode.unsound || buildInfo.nullSafetyMode == NullSafetyMode.autodetect) {