Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ad5bcf1

Browse files
srawlinscommit-bot@chromium.org
authored andcommitted
Analyzer: remove unnecessary this in lib/src/summary,2
Change-Id: I110ffd76b1d04f83bbe08b79937c2ef6d02987a9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156487 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent 4121cf3 commit ad5bcf1

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

pkg/analyzer/lib/src/summary/format.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
//
4+
55
// This file has been automatically generated. Please do not edit it manually.
66
// To regenerate the file, use the SDK script
77
// "pkg/analyzer/tool/summary/generate.dart $IDL_FILE_PATH",
88
// or "pkg/analyzer/tool/generate_files" for the analyzer package IDL/sources.
99

10+
// The generator sometimes generates unnecessary 'this' references.
11+
// ignore_for_file: unnecessary_this
12+
1013
library analyzer.src.summary.format;
1114

1215
import 'dart:convert' as convert;

pkg/analyzer/lib/src/summary/format.fbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
4-
//
4+
55
// This file has been automatically generated. Please do not edit it manually.
66
// To regenerate the file, use the SDK script
77
// "pkg/analyzer/tool/summary/generate.dart $IDL_FILE_PATH",

pkg/analyzer/lib/src/summary/summarize_elements.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class PackageBundleAssembler {
1515
}
1616

1717
void setBundle2(LinkedNodeBundleBuilder bundle2) {
18-
if (this._bundle2 != null) {
18+
if (_bundle2 != null) {
1919
throw StateError('Bundle2 may be set only once.');
2020
}
2121
_bundle2 = bundle2;

pkg/analyzer/lib/src/summary2/library_builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ class LibraryBuilder {
300300
return null;
301301
}
302302
var relativeUri = Uri.parse(relativeUriStr);
303-
return resolveRelativeUri(this.uri, relativeUri);
303+
return resolveRelativeUri(uri, relativeUri);
304304
}
305305

306306
String _selectRelativeUri(

pkg/analyzer/tool/summary/generate.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,9 @@ class _CodeGenerator {
806806
/// Entry point to the code generator when generating the "format.dart" file.
807807
void generateFormatCode() {
808808
outputHeader();
809+
out("// The generator sometimes generates unnecessary 'this' references.");
810+
out('// ignore_for_file: unnecessary_this');
811+
out();
809812
out('library analyzer.src.summary.format;');
810813
out();
811814
out("import 'dart:convert' as convert;");
@@ -848,7 +851,7 @@ class _CodeGenerator {
848851
out('// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file');
849852
out('// for details. All rights reserved. Use of this source code is governed by a');
850853
out('// BSD-style license that can be found in the LICENSE file.');
851-
out('//');
854+
out();
852855
out('// This file has been automatically generated. Please do not edit it manually.');
853856
out('// To regenerate the file, use the SDK script');
854857
out('// "pkg/analyzer/tool/summary/generate.dart \$IDL_FILE_PATH",');

0 commit comments

Comments
 (0)