Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'esproposal_decorators',
'esproposal_export_star_as',
'esproposal_optional_chaining',
'esproposal_nullish_coalescing',
'tokens',
'types',
],
};
export default {
...defaultParserInterface,
id: ID,
displayName: ID,
version: pkg.version,
homepage: pkg.homepage || 'https://flowtype.org/',
locationProps: new Set(['range', 'loc']),
loadParser(callback) {
require(['flow-parser'], callback);
},
parse(flowParser, code, options) {
return flowParser.parse(code, options);
},
getDefaultOptions() {
return defaultOptions;
},
_getSettingsConfiguration() {
return parserSettingsConfiguration;