File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55"use strict" ;
66
7+
8+ const Types = require ( './types' ) ;
9+
10+ function optional ( obj ) {
11+ obj . optional = true ;
12+
13+ return obj ;
14+ }
15+
16+ function repeatable ( obj ) {
17+ obj . repeatable = true ;
18+
19+ return obj ;
20+ }
21+
22+ function nullable ( obj , modifier ) {
23+ if ( modifier ) {
24+ obj . nullable = ( modifier === '?' ? true : false ) ;
25+ }
26+
27+ return obj ;
28+ }
29+
730class peg$SyntaxError extends SyntaxError {
831 constructor ( message , expected , found , location ) {
932 super ( message ) ;
@@ -5006,29 +5029,6 @@ function peg$parse(input, options) {
50065029 return s0 ;
50075030 }
50085031
5009-
5010- const Types = require ( './types' ) ;
5011-
5012- function optional ( obj ) {
5013- obj . optional = true ;
5014-
5015- return obj ;
5016- }
5017-
5018- function repeatable ( obj ) {
5019- obj . repeatable = true ;
5020-
5021- return obj ;
5022- }
5023-
5024- function nullable ( obj , modifier ) {
5025- if ( modifier ) {
5026- obj . nullable = ( modifier === '?' ? true : false ) ;
5027- }
5028-
5029- return obj ;
5030- }
5031-
50325032 peg$result = peg$startRuleFunction ( ) ;
50335033
50345034 const peg$success = ( peg$result !== peg$FAILED && peg$currPos === input . length ) ;
Original file line number Diff line number Diff line change 99 * @license MIT License <http://opensource.org/licenses/mit-license.php/>
1010 */
1111
12- {
12+ {{
1313 const Types = require (' ./types' );
1414
1515 function optional (obj ) {
3131
3232 return obj;
3333 }
34- }
34+ }}
3535
3636TypeExpression
3737 = TypeUnionLegacySyntax
You can’t perform that action at this time.
0 commit comments