Example #1
0
        internal static TypeSymbol Get(WellKnownTypes kind)
        {
            Debug.Assert(WellKnownTypeSymbols != null);
            var result = WellKnownTypeSymbols[(int)kind];

            if (result == null)
            {
                Compilation.Error(ErrorCode.TypeNotFound, kind);
            }
            return(result);
        }