components/code/src/command.rules.js
// Variables could be parsed in cases where only Const is expected by spec.
Variables could be parsed in cases where only Const is expected by spec.
Variables could be parsed in cases where only Const is expected by spec .
function Value(token) {
			switch (token.kind) {
				case 'Number':
					return 'NumberValue';
				case 'String':
					return 'StringValue';
				case 'Punctuation':
					switch (token.value) {
						case '[':
							return 'ListValue';
						case '{':
							return 'ObjectValue';
						case '$':
							return 'Variable';
					}
					return null;
				case 'Name':
					switch (token.value) {
						case 'true':case 'false':
						return 'BooleanValue';
					}
					if (token.value === 'null') {
						return 'NullValue';
					}
					return 'EnumValue';
			}
		}
function Value ( token ) { switch ( token . kind ) { case 'Number' : return 'NumberValue' ; case 'String' : return 'StringValue' ; case 'Punctuation' : switch ( token . value ) { case '[' : return 'ListValue' ; case '{' : return 'ObjectValue' ; case '$' : return 'Variable' ; } return null ; case 'Name' : switch ( token . value ) { case 'true' : case 'false' : return 'BooleanValue' ; } if ( token . value === 'null' ) { return 'NullValue' ; } return 'EnumValue' ; } }
Variables could be parsed in cases where only Const is expected by spec.
Variables could be parsed in cases where only Const is expected by spec .