Skip to content

Commit 55ce116

Browse files
authored
Use latest language version for DartFormatter (#3875)
1 parent 2a26281 commit 55ce116

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

lib/src/generator/templates.runtime_renderers.dart

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15901,13 +15901,18 @@ const _invisibleGetters = {
1590115901
'accessors',
1590215902
'classes',
1590315903
'enclosingElement',
15904+
'enclosingElement3',
1590415905
'enums',
1590515906
'extensionTypes',
1590615907
'extensions',
1590715908
'functions',
1590815909
'hashCode',
15910+
'libraryExports',
15911+
'libraryImportPrefixes',
15912+
'libraryImports',
1590915913
'lineInfo',
1591015914
'mixins',
15915+
'parts',
1591115916
'runtimeType',
1591215917
'session',
1591315918
'topLevelVariables',
@@ -15925,6 +15930,7 @@ const _invisibleGetters = {
1592515930
'declaration',
1592615931
'displayName',
1592715932
'enclosingElement',
15933+
'enclosingElement3',
1592815934
'hashCode',
1592915935
'isConst',
1593015936
'isDefaultConstructor',
@@ -16040,6 +16046,7 @@ const _invisibleGetters = {
1604016046
'displayName',
1604116047
'documentationComment',
1604216048
'enclosingElement',
16049+
'enclosingElement3',
1604316050
'hasAlwaysThrows',
1604416051
'hasDeprecated',
1604516052
'hasDoNotStore',
@@ -16095,11 +16102,15 @@ const _invisibleGetters = {
1609516102
'ExecutableMember': {
1609616103
'augmentationSubstitution',
1609716104
'children',
16105+
'children3',
1609816106
'context',
1609916107
'declaration',
1610016108
'displayName',
1610116109
'documentationComment',
16110+
'element',
1610216111
'enclosingElement',
16112+
'enclosingElement3',
16113+
'enclosingFragment',
1610316114
'hasAlwaysThrows',
1610416115
'hasDeprecated',
1610516116
'hasDoNotStore',
@@ -16145,14 +16156,18 @@ const _invisibleGetters = {
1614516156
'isSynthetic',
1614616157
'kind',
1614716158
'library',
16159+
'libraryFragment',
1614816160
'librarySource',
1614916161
'location',
1615016162
'metadata',
1615116163
'name',
1615216164
'nameLength',
1615316165
'nameOffset',
16166+
'nextFragment',
1615416167
'nonSynthetic',
1615516168
'parameters',
16169+
'parameters2',
16170+
'previousFragment',
1615616171
'returnType',
1615716172
'runtimeType',
1615816173
'session',
@@ -16318,6 +16333,7 @@ const _invisibleGetters = {
1631816333
},
1631916334
'Kind': {'hashCode', 'index', 'runtimeType'},
1632016335
'LibraryElement': {
16336+
'enclosingElement3',
1632116337
'entryPoint',
1632216338
'exportNamespace',
1632316339
'exportedLibraries',
@@ -16363,6 +16379,7 @@ const _invisibleGetters = {
1636316379
'displayName',
1636416380
'documentationComment',
1636516381
'enclosingElement',
16382+
'enclosingElement3',
1636616383
'hasAlwaysThrows',
1636716384
'hasDeprecated',
1636816385
'hasDoNotStore',
@@ -16512,6 +16529,7 @@ const _invisibleGetters = {
1651216529
'displayName',
1651316530
'documentationComment',
1651416531
'enclosingElement',
16532+
'enclosingElement3',
1651516533
'hasAlwaysThrows',
1651616534
'hasDefaultValue',
1651716535
'hasDeprecated',
@@ -16581,6 +16599,7 @@ const _invisibleGetters = {
1658116599
'correspondingSetter',
1658216600
'declaration',
1658316601
'enclosingElement',
16602+
'enclosingElement3',
1658416603
'hashCode',
1658516604
'isGetter',
1658616605
'isSetter',
@@ -16611,6 +16630,7 @@ const _invisibleGetters = {
1661116630
'aliasedElement',
1661216631
'aliasedType',
1661316632
'enclosingElement',
16633+
'enclosingElement3',
1661416634
'hashCode',
1661516635
'isAugmentation',
1661616636
'name',

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525

2626
dev_dependencies:
2727
async: ^2.11.0
28-
dart_style: ^2.3.4
28+
dart_style: ^2.3.7
2929
lints: ^4.0.0
3030
matcher: ^0.12.15
3131
test: ^1.24.2

tool/mustachio/codegen_aot_compiler.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ Future<String> compileTemplatesToRenderers(
6060
buffer.writeln();
6161
buffer.writeln();
6262
}
63-
return DartFormatter().format('''
63+
return DartFormatter(languageVersion: DartFormatter.latestLanguageVersion)
64+
.format('''
6465
// GENERATED CODE. DO NOT EDIT.
6566
//
6667
// To change the contents of this library, make changes to the builder source

tool/mustachio/codegen_runtime_renderer.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ String buildRuntimeRenderers(Set<RendererSpec> specs, Uri sourceUri,
2929
sourceUri, typeProvider, typeSystem, visibleElements,
3030
rendererClassesArePublic: rendererClassesArePublic)
3131
._buildTemplateRenderers(specs);
32-
return DartFormatter().format(raw);
32+
return DartFormatter(languageVersion: DartFormatter.latestLanguageVersion)
33+
.format(raw);
3334
}
3435

3536
/// This class builds runtime Mustache renderers from a set of [RendererSpec]s.

0 commit comments

Comments
 (0)