Select Git revision
symbols.ts 1.01 KiB
/**
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author Koya Sakuma <koya.sakuma.work@gmail.com>
*
* Adapted from MolQL project
*/
import { properties } from './properties';
import { operators } from './operators';
import { keywords } from './keywords';
export const Properties: string[] = [];
for (const name in properties) {
if (properties[name].isUnsupported) continue;
Properties.push(name);
if (properties[name].abbr) Properties.push(...properties[name].abbr!);
}
export const Operators: string[] = [];
operators.forEach(o => {
if (o.isUnsupported) return;
Operators.push(o.name);
if (o.abbr) Operators.push(...o.abbr);
});
export const Keywords: string[] = [];
for (const name in keywords) {
if (!keywords[name].map) continue;
Keywords.push(name);
if (keywords[name].abbr) Keywords.push(...keywords[name].abbr!);
}
export const _all = { Properties, Operators, Keywords };