@@ -1673,28 +1673,6 @@ class _Renderer_Class extends RendererBase<Class> {
1673
1673
parent: r);
1674
1674
},
1675
1675
),
1676
- 'fullkind': Property(
1677
- getValue: (CT_ c) => c.fullkind,
1678
- renderVariable:
1679
- (CT_ c, Property<CT_> self, List<String> remainingNames) {
1680
- if (remainingNames.isEmpty) {
1681
- return self.getValue(c).toString();
1682
- }
1683
- var name = remainingNames.first;
1684
- var nextProperty =
1685
- _Renderer_String.propertyMap().getValue(name);
1686
- return nextProperty.renderVariable(
1687
- self.getValue(c) as String,
1688
- nextProperty,
1689
- [...remainingNames.skip(1)]);
1690
- },
1691
- isNullValue: (CT_ c) => false,
1692
- renderValue: (CT_ c, RendererBase<CT_> r,
1693
- List<MustachioNode> ast, StringSink sink) {
1694
- _render_String(c.fullkind, ast, r.template, sink,
1695
- parent: r);
1696
- },
1697
- ),
1698
1676
'inheritanceChain': Property(
1699
1677
getValue: (CT_ c) => c.inheritanceChain,
1700
1678
renderVariable: (CT_ c, Property<CT_> self,
@@ -1715,13 +1693,48 @@ class _Renderer_Class extends RendererBase<Class> {
1715
1693
self.renderSimpleVariable(c, remainingNames, 'bool'),
1716
1694
getBool: (CT_ c) => c.isAbstract == true,
1717
1695
),
1696
+ 'isBase': Property(
1697
+ getValue: (CT_ c) => c.isBase,
1698
+ renderVariable: (CT_ c, Property<CT_> self,
1699
+ List<String> remainingNames) =>
1700
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
1701
+ getBool: (CT_ c) => c.isBase == true,
1702
+ ),
1718
1703
'isErrorOrException': Property(
1719
1704
getValue: (CT_ c) => c.isErrorOrException,
1720
1705
renderVariable: (CT_ c, Property<CT_> self,
1721
1706
List<String> remainingNames) =>
1722
1707
self.renderSimpleVariable(c, remainingNames, 'bool'),
1723
1708
getBool: (CT_ c) => c.isErrorOrException == true,
1724
1709
),
1710
+ 'isFinal': Property(
1711
+ getValue: (CT_ c) => c.isFinal,
1712
+ renderVariable: (CT_ c, Property<CT_> self,
1713
+ List<String> remainingNames) =>
1714
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
1715
+ getBool: (CT_ c) => c.isFinal == true,
1716
+ ),
1717
+ 'isInterface': Property(
1718
+ getValue: (CT_ c) => c.isInterface,
1719
+ renderVariable: (CT_ c, Property<CT_> self,
1720
+ List<String> remainingNames) =>
1721
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
1722
+ getBool: (CT_ c) => c.isInterface == true,
1723
+ ),
1724
+ 'isMixinClass': Property(
1725
+ getValue: (CT_ c) => c.isMixinClass,
1726
+ renderVariable: (CT_ c, Property<CT_> self,
1727
+ List<String> remainingNames) =>
1728
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
1729
+ getBool: (CT_ c) => c.isMixinClass == true,
1730
+ ),
1731
+ 'isSealed': Property(
1732
+ getValue: (CT_ c) => c.isSealed,
1733
+ renderVariable: (CT_ c, Property<CT_> self,
1734
+ List<String> remainingNames) =>
1735
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
1736
+ getBool: (CT_ c) => c.isSealed == true,
1737
+ ),
1725
1738
'kind': Property(
1726
1739
getValue: (CT_ c) => c.kind,
1727
1740
renderVariable:
@@ -4358,6 +4371,41 @@ class _Renderer_Enum extends RendererBase<Enum> {
4358
4371
parent: r));
4359
4372
},
4360
4373
),
4374
+ 'isAbstract': Property(
4375
+ getValue: (CT_ c) => c.isAbstract,
4376
+ renderVariable: (CT_ c, Property<CT_> self,
4377
+ List<String> remainingNames) =>
4378
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
4379
+ getBool: (CT_ c) => c.isAbstract == true,
4380
+ ),
4381
+ 'isBase': Property(
4382
+ getValue: (CT_ c) => c.isBase,
4383
+ renderVariable: (CT_ c, Property<CT_> self,
4384
+ List<String> remainingNames) =>
4385
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
4386
+ getBool: (CT_ c) => c.isBase == true,
4387
+ ),
4388
+ 'isInterface': Property(
4389
+ getValue: (CT_ c) => c.isInterface,
4390
+ renderVariable: (CT_ c, Property<CT_> self,
4391
+ List<String> remainingNames) =>
4392
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
4393
+ getBool: (CT_ c) => c.isInterface == true,
4394
+ ),
4395
+ 'isMixinClass': Property(
4396
+ getValue: (CT_ c) => c.isMixinClass,
4397
+ renderVariable: (CT_ c, Property<CT_> self,
4398
+ List<String> remainingNames) =>
4399
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
4400
+ getBool: (CT_ c) => c.isMixinClass == true,
4401
+ ),
4402
+ 'isSealed': Property(
4403
+ getValue: (CT_ c) => c.isSealed,
4404
+ renderVariable: (CT_ c, Property<CT_> self,
4405
+ List<String> remainingNames) =>
4406
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
4407
+ getBool: (CT_ c) => c.isSealed == true,
4408
+ ),
4361
4409
'kind': Property(
4362
4410
getValue: (CT_ c) => c.kind,
4363
4411
renderVariable:
@@ -6971,13 +7019,55 @@ class _Renderer_InheritingContainer extends RendererBase<InheritingContainer> {
6971
7019
_render_Operator(e, ast, r.template, sink, parent: r));
6972
7020
},
6973
7021
),
7022
+ 'isAbstract': Property(
7023
+ getValue: (CT_ c) => c.isAbstract,
7024
+ renderVariable: (CT_ c, Property<CT_> self,
7025
+ List<String> remainingNames) =>
7026
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
7027
+ getBool: (CT_ c) => c.isAbstract == true,
7028
+ ),
7029
+ 'isBase': Property(
7030
+ getValue: (CT_ c) => c.isBase,
7031
+ renderVariable: (CT_ c, Property<CT_> self,
7032
+ List<String> remainingNames) =>
7033
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
7034
+ getBool: (CT_ c) => c.isBase == true,
7035
+ ),
6974
7036
'isCanonical': Property(
6975
7037
getValue: (CT_ c) => c.isCanonical,
6976
7038
renderVariable: (CT_ c, Property<CT_> self,
6977
7039
List<String> remainingNames) =>
6978
7040
self.renderSimpleVariable(c, remainingNames, 'bool'),
6979
7041
getBool: (CT_ c) => c.isCanonical == true,
6980
7042
),
7043
+ 'isFinal': Property(
7044
+ getValue: (CT_ c) => c.isFinal,
7045
+ renderVariable: (CT_ c, Property<CT_> self,
7046
+ List<String> remainingNames) =>
7047
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
7048
+ getBool: (CT_ c) => c.isFinal == true,
7049
+ ),
7050
+ 'isInterface': Property(
7051
+ getValue: (CT_ c) => c.isInterface,
7052
+ renderVariable: (CT_ c, Property<CT_> self,
7053
+ List<String> remainingNames) =>
7054
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
7055
+ getBool: (CT_ c) => c.isInterface == true,
7056
+ ),
7057
+ 'isMixinClass': Property(
7058
+ getValue: (CT_ c) => c.isMixinClass,
7059
+ renderVariable: (CT_ c, Property<CT_> self,
7060
+ List<String> remainingNames) =>
7061
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
7062
+ getBool: (CT_ c) => c.isMixinClass == true,
7063
+ ),
7064
+ 'isSealed': Property(
7065
+ getValue: (CT_ c) => c.isSealed,
7066
+ renderVariable: (CT_ c, Property<CT_> self,
7067
+ List<String> remainingNames) =>
7068
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
7069
+ getBool: (CT_ c) => c.isSealed == true,
7070
+ ),
6981
7071
'modelType': Property(
6982
7072
getValue: (CT_ c) => c.modelType,
6983
7073
renderVariable:
@@ -7002,6 +7092,28 @@ class _Renderer_InheritingContainer extends RendererBase<InheritingContainer> {
7002
7092
parent: r);
7003
7093
},
7004
7094
),
7095
+ 'modifiers': Property(
7096
+ getValue: (CT_ c) => c.modifiers,
7097
+ renderVariable:
7098
+ (CT_ c, Property<CT_> self, List<String> remainingNames) {
7099
+ if (remainingNames.isEmpty) {
7100
+ return self.getValue(c).toString();
7101
+ }
7102
+ var name = remainingNames.first;
7103
+ var nextProperty =
7104
+ _Renderer_String.propertyMap().getValue(name);
7105
+ return nextProperty.renderVariable(
7106
+ self.getValue(c) as String,
7107
+ nextProperty,
7108
+ [...remainingNames.skip(1)]);
7109
+ },
7110
+ isNullValue: (CT_ c) => false,
7111
+ renderValue: (CT_ c, RendererBase<CT_> r,
7112
+ List<MustachioNode> ast, StringSink sink) {
7113
+ _render_String(c.modifiers, ast, r.template, sink,
7114
+ parent: r);
7115
+ },
7116
+ ),
7005
7117
'publicInheritedFields': Property(
7006
7118
getValue: (CT_ c) => c.publicInheritedFields,
7007
7119
renderVariable: (CT_ c, Property<CT_> self,
@@ -9377,6 +9489,48 @@ class _Renderer_Mixin extends RendererBase<Mixin> {
9377
9489
parent: r));
9378
9490
},
9379
9491
),
9492
+ 'isAbstract': Property(
9493
+ getValue: (CT_ c) => c.isAbstract,
9494
+ renderVariable: (CT_ c, Property<CT_> self,
9495
+ List<String> remainingNames) =>
9496
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
9497
+ getBool: (CT_ c) => c.isAbstract == true,
9498
+ ),
9499
+ 'isBase': Property(
9500
+ getValue: (CT_ c) => c.isBase,
9501
+ renderVariable: (CT_ c, Property<CT_> self,
9502
+ List<String> remainingNames) =>
9503
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
9504
+ getBool: (CT_ c) => c.isBase == true,
9505
+ ),
9506
+ 'isFinal': Property(
9507
+ getValue: (CT_ c) => c.isFinal,
9508
+ renderVariable: (CT_ c, Property<CT_> self,
9509
+ List<String> remainingNames) =>
9510
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
9511
+ getBool: (CT_ c) => c.isFinal == true,
9512
+ ),
9513
+ 'isInterface': Property(
9514
+ getValue: (CT_ c) => c.isInterface,
9515
+ renderVariable: (CT_ c, Property<CT_> self,
9516
+ List<String> remainingNames) =>
9517
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
9518
+ getBool: (CT_ c) => c.isInterface == true,
9519
+ ),
9520
+ 'isMixinClass': Property(
9521
+ getValue: (CT_ c) => c.isMixinClass,
9522
+ renderVariable: (CT_ c, Property<CT_> self,
9523
+ List<String> remainingNames) =>
9524
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
9525
+ getBool: (CT_ c) => c.isMixinClass == true,
9526
+ ),
9527
+ 'isSealed': Property(
9528
+ getValue: (CT_ c) => c.isSealed,
9529
+ renderVariable: (CT_ c, Property<CT_> self,
9530
+ List<String> remainingNames) =>
9531
+ self.renderSimpleVariable(c, remainingNames, 'bool'),
9532
+ getBool: (CT_ c) => c.isSealed == true,
9533
+ ),
9380
9534
'kind': Property(
9381
9535
getValue: (CT_ c) => c.kind,
9382
9536
renderVariable:
0 commit comments