all files / dist/definitions/class/ ClassConstructorParameterScope.js

100% Statements 8/8
100% Branches 5/5
100% Functions 1/1
100% Lines 8/8
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                                 
"use strict";
var Scope_1 = require("./Scope");
exports.ClassConstructorParameterScope = {
    None: "none",
    Public: "public",
    Protected: "protected",
    Private: "private",
    toScope: function (scope) {
        switch (scope) {
            case exports.ClassConstructorParameterScope.Public:
                return Scope_1.Scope.Public;
            case exports.ClassConstructorParameterScope.Protected:
                return Scope_1.Scope.Protected;
            case exports.ClassConstructorParameterScope.Private:
                return Scope_1.Scope.Private;
            case exports.ClassConstructorParameterScope.None:
                throw new Error("Unexpected conversion of ClassConstructorParameterScope.None to Scope");
            default:
                throw new Error("Not implemented ClassConstructorParameterScope: " + scope);
        }
    }
};
 
//# sourceMappingURL=ClassConstructorParameterScope.js.map