Skip to content

Commit 3cd335e

Browse files
authored
Remove unused field and no-op value set (#1562)
With the current version of pkg/analyzer (0.31.0-alpha.2), enableAssertInitializer setter does nothing
1 parent 7839db3 commit 3cd335e

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

lib/dartdoc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export 'src/sdk.dart';
3535

3636
const String name = 'dartdoc';
3737
// Update when pubspec version changes.
38-
const String version = '0.15.0+1';
38+
const String version = '0.15.1-dev';
3939

4040
final String defaultOutDir = path.join('doc', 'api');
4141

lib/src/model.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4882,7 +4882,6 @@ class TypeParameter extends ModelElement {
48824882

48834883
@override
48844884
String get name {
4885-
var bound = _typeParameter.bound;
48864885
return _typeParameter.bound != null
48874886
? '${_typeParameter.name} extends ${boundType.nameWithGenerics}'
48884887
: _typeParameter.name;
@@ -5011,7 +5010,6 @@ class PackageBuilder {
50115010
if (_context == null) {
50125011
// TODO(jcollins-g): fix this so it actually obeys analyzer options files.
50135012
var options = new AnalysisOptionsImpl();
5014-
options.enableAssertInitializer = true;
50155013
options.enableSuperMixins = true;
50165014
AnalysisEngine.instance.processRequiredPlugins();
50175015

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: dartdoc
22
# Also update the `version` field in lib/dartdoc.dart.
3-
version: 0.15.0+1
3+
version: 0.15.1-dev
44
author: Dart Team <[email protected]>
55
description: A documentation generator for Dart.
66
homepage: https://github.com/dart-lang/dartdoc

testing/test_package_docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<meta name="generator" content="made with love by dartdoc 0.15.0+1">
7+
<meta name="generator" content="made with love by dartdoc 0.15.1-dev">
88
<meta name="description" content="test_package API docs, for the Dart programming language.">
99
<title>test_package - Dart API docs</title>
1010

0 commit comments

Comments
 (0)