define(["require", "exports", "./metadata-versioned-reader"], function (require, exports, metadata_versioned_reader_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    // tslint:disable-next-line:completed-docs
    class MetadataV1 extends metadata_versioned_reader_1.MetadataBase {
        constructor(metadata) {
            super("1", metadata);
        }
        isInline(_node) {
            return false;
        }
        documentationLinkFor(name) {
            const root = this.metadata.dochtml;
            if (root === undefined) {
                return undefined;
            }
            let unresolved = this.unresolveName(name);
            if (unresolved === undefined) {
                return undefined;
            }
            // The TEI odd2html stylesheet creates file names of the form
            // prefix_local-name.html. So replace the colon with an underscore.
            unresolved = unresolved.replace(":", "_");
            return `${root}ref-${unresolved}.html`;
        }
    }
    /**
     * A reader that reads version 1 of the metadata format.
     */
    class MetadataReaderV1 extends metadata_versioned_reader_1.MetadataReaderBase {
        constructor() {
            super(MetadataV1);
        }
    }
    MetadataReaderV1.version = "1";
    exports.MetadataReaderV1 = MetadataReaderV1;
});
//  LocalWords:  MPL TEI html stylesheet
//# sourceMappingURL=metadata-reader-v1.js.map