All files / parser/nodes immutableDictionary.js

0% Statements 0/4
100% Branches 0/0
0% Functions 0/2
0% Lines 0/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31                                                             
import Node from './node';
 
/**
 * Matches an immutable dictionary literal.
 * 
 * This matches an immutable dictionary literal.
 */
export default class ImmutableDictionary extends Node {
    
    /**
     * Creates a wrapper for an immutable dictionary
     * 
     * @param {Object} dictionary the literal dictionary value of the literal
     * @param {number} type The literal type as from a TokenType
     * @param {Object} position a position from nearley
     */
    constructor (dictionary: object, type: number, position: Object) {
        super(position);
        
        /** @type {string} */
        this.dictionary = dic;
        
        /** @type {VSLTokenType} */
        this.type = type;
    }
    
    /** @override */
    get children() {
        return null;
    }
}