@@ -46,6 +46,19 @@ private abstract class DumpDeclaration extends Declaration {
4646 string getIdentityString ( ) {
4747 none ( )
4848 }
49+
50+ language [ monotonicAggregates]
51+ final string getTemplateArgumentsString ( ) {
52+ if exists ( this .getATemplateArgument ( ) ) then (
53+ result = "<" +
54+ strictconcat ( int i |
55+ exists ( this .getTemplateArgument ( i ) ) |
56+ this .getTemplateArgument ( i ) .( DumpType ) .getTypeIdentityString ( ) , ", " order by i
57+ ) + ">"
58+ )
59+ else
60+ result = ""
61+ }
4962}
5063
5164/**
@@ -342,19 +355,6 @@ private class UserDumpType extends DumpType, DumpDeclaration, UserType {
342355 )
343356 }
344357
345- language [ monotonicAggregates]
346- private string getTemplateArgumentsString ( ) {
347- if exists ( this .( Class ) .getATemplateArgument ( ) ) then (
348- result = "<" +
349- strictconcat ( int i |
350- exists ( this .( Class ) .getTemplateArgument ( i ) ) |
351- this .( Class ) .getTemplateArgument ( i ) .( DumpType ) .getTypeIdentityString ( ) , ", " order by i
352- ) + ">"
353- )
354- else
355- result = ""
356- }
357-
358358 override string getTypeSpecifier ( ) {
359359 result = getIdentityString ( )
360360 }
@@ -368,39 +368,13 @@ private class DumpVariable extends DumpDeclaration, Variable {
368368 result = type .getTypeSpecifier ( ) + type .getDeclaratorPrefix ( ) + " " + getScopePrefix ( this ) + this .getName ( ) + this .getTemplateArgumentsString ( ) + type .getDeclaratorSuffixBeforeQualifiers ( ) + type .getDeclaratorSuffix ( )
369369 )
370370 }
371-
372- language [ monotonicAggregates]
373- private string getTemplateArgumentsString ( ) {
374- if exists ( getATemplateArgument ( ) ) then (
375- result = "<" +
376- strictconcat ( int i |
377- exists ( getTemplateArgument ( i ) ) |
378- getTemplateArgument ( i ) .( DumpType ) .getTypeIdentityString ( ) , ", " order by i
379- ) + ">"
380- )
381- else
382- result = ""
383- }
384371}
385372
386373private class DumpFunction extends DumpDeclaration , Function {
387374 override string getIdentityString ( ) {
388375 result = getType ( ) .( DumpType ) .getTypeSpecifier ( ) + getType ( ) .( DumpType ) .getDeclaratorPrefix ( ) + " " + getScopePrefix ( this ) + getName ( ) + getTemplateArgumentsString ( ) + getDeclaratorSuffixBeforeQualifiers ( ) + getDeclaratorSuffix ( )
389376 }
390377
391- language [ monotonicAggregates]
392- private string getTemplateArgumentsString ( ) {
393- if exists ( getATemplateArgument ( ) ) then (
394- result = "<" +
395- strictconcat ( int i |
396- exists ( getTemplateArgument ( i ) ) |
397- getTemplateArgument ( i ) .( DumpType ) .getTypeIdentityString ( ) , ", " order by i
398- ) + ">"
399- )
400- else
401- result = ""
402- }
403-
404378 language [ monotonicAggregates]
405379 private string getDeclaratorSuffixBeforeQualifiers ( ) {
406380 result = "(" +
0 commit comments