File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -142,15 +142,18 @@ export class Microgrammar<T> implements Term {
142
142
* @return {Microgrammar<T> }
143
143
*/
144
144
public static fromStringAs < T = any > ( spec : string ,
145
- components : TermsDefinition < T > = { } as any ,
146
- options : FromStringOptions = { } ) : Microgrammar < AnyKeysOf < T > > {
145
+ components : TermsDefinition < T > = { } as any ,
146
+ options : FromStringOptions = { } ) : Microgrammar < AnyKeysOf < T > > {
147
147
return this . fromString ( spec , components , options ) ;
148
148
}
149
149
150
150
public readonly $id : string ;
151
151
152
152
public readonly definitions = this . matcher . definitions ;
153
153
154
+ constructor ( public matcher : Concatenation ) {
155
+ }
156
+
154
157
/**
155
158
* Generator for matching the given input.
156
159
* @param {string | InputStream } input
@@ -162,9 +165,6 @@ export class Microgrammar<T> implements Term {
162
165
return matchesIn ( this , input , parseContext , l ) ;
163
166
}
164
167
165
- constructor ( public matcher : Concatenation ) {
166
- }
167
-
168
168
/**
169
169
* Convenience method to find matches without the ability to update them
170
170
* @param input
You can’t perform that action at this time.
0 commit comments