Skip to content
Snippets Groups Projects
Select Git revision
  • 4ca5284f2b8a8245ab8af470b4421a543b8001b7
  • master default protected
  • rednatco-v2
  • base-pairs-ladder
  • rednatco
  • test
  • ntc-tube-uniform-color
  • ntc-tube-missing-atoms
  • restore-vertex-array-per-program
  • watlas2
  • dnatco_new
  • cleanup-old-nodejs
  • webmmb
  • fix_auth_seq_id
  • update_deps
  • ext_dev
  • ntc_balls
  • nci-2
  • plugin
  • bugfix-0.4.5
  • nci
  • v0.5.0-dev.1
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0
  • v0.3.12
  • v0.3.11
  • v0.3.10
  • v0.3.9
  • v0.3.8
  • v0.3.7
  • v0.3.6
  • v0.3.5
  • v0.3.4
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
41 results

helpers.d.ts

Blame
  • 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 };