Microsoft.Fast.AST.FastSort.GetSort C# (CSharp) Метод

GetSort() статический приватный Метод

static private GetSort ( FastToken sortName ) : FastSort
sortName FastToken
Результат FastSort
        internal static FastSort GetSort(FastToken sortName)
        {
            if (sortName.text == "real")
                return new FastSort(sortName, FastSortKind.Real);
            if (sortName.text == "bool")
                return new FastSort(sortName, FastSortKind.Bool);
            if (sortName.text == "string")
                return new FastSort(sortName, FastSortKind.String);
            if (sortName.text == "int")
                return new FastSort(sortName, FastSortKind.Int);
            if (sortName.text == "char")
                return new FastSort(sortName, FastSortKind.Char);

            return new FastSort(sortName, FastSortKind.Tree);
        }