{"size": 1539, "ext": "js", "max_stars_repo_path": "node_modules/antlr4ts/tree/xpath/XPathElement.js", "max_stars_repo_name": "testanib/solidity-voting-app", "max_stars_repo_stars_event_min_datetime": "2022-01-13T05:11:54.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-23T03:27:28.000Z", "max_issues_repo_path": "node_modules/antlr4ts/tree/xpath/XPathElement.js", "max_issues_repo_name": "testanib/solidity-voting-app", "max_issues_repo_issues_event_min_datetime": "2022-02-11T03:32:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T04:36:51.000Z", "max_forks_repo_path": "node_modules/antlr4ts/tree/xpath/XPathElement.js", "max_forks_repo_name": "testanib/solidity-voting-app", "max_forks_repo_forks_event_min_datetime": "2022-02-09T15:14:52.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T18:43:12.000Z"}
{"max_stars_count": 14, "max_issues_count": 2, "max_forks_count": 10, "avg_line_length": 45.2647058824, "max_line_length": 151, "alphanum_fraction": 0.6250812216}
"use strict";
/*!
 * Copyright 2016 The ANTLR Project. All rights reserved.
 * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
 */
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.XPathElement = void 0;
// CONVERSTION complete, Burt Harris 10/14/2016
const Decorators_1 = require("../../Decorators");
class XPathElement {
    /** Construct element like `/ID` or `ID` or `/*` etc...
     *  op is null if just node
     */
    constructor(nodeName) {
        this.nodeName = nodeName;
        this.invert = false;
    }
    toString() {
        let inv = this.invert ? "!" : "";
        let className = Object.constructor.name;
        return className + "[" + inv + this.nodeName + "]";
    }
}
__decorate([
    Decorators_1.Override
], XPathElement.prototype, "toString", null);
exports.XPathElement = XPathElement;
//# sourceMappingURL=XPathElement.js.map