Пример #1
0
 public static string ToName(this TypeSyntax syntax)
 {
     return(syntax.Accept(new TypeSyntaxVisitor()));
 }
        /// <summary>
        /// Determines if the provided type is a C++ built-in type.
        /// </summary>
        /// <param name="typeSyntax"></param>
        /// <param name="generator"></param>
        /// <returns></returns>
        public static bool IsBuiltinType(TypeSyntax typeSyntax, CPPCodeGenerator generator)
        {
            string type_name = typeSyntax.Accept(generator).ToString();

            return(builtinTypes.Contains(type_name));
        }