We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e1ebb8 commit d1df48eCopy full SHA for d1df48e
lib/src/dart/_icu_parser.dart
@@ -67,7 +67,7 @@ class CustomIcuParser {
67
Parser get empty => epsilon().map((_) => '');
68
69
Parser get parameter => (openCurly & id & closeCurly)
70
- .map((param) => VariableSubstitution.named(param[1], null));
+ .map((param) => CustomVariableSubstitution.named(param[1], null));
71
72
/// The primary entry point for parsing. Accepts a string and produces
73
/// a parsed representation of it as a Message.
@@ -88,3 +88,10 @@ class CustomIcuParser {
88
interiorText.set(contents.plus() | empty);
89
}
90
91
+
92
+class CustomVariableSubstitution extends VariableSubstitution {
93
+ final String variable;
94
+ CustomVariableSubstitution.named(String name, Message parent)
95
+ : variable = name,
96
+ super.named(name, parent);
97
+}
0 commit comments