Microsoft.Fast.AST.FastSort.GetSort C# (CSharp) Method

GetSort() static private method

static private GetSort ( FastToken sortName ) : FastSort
sortName FastToken
return 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);
        }