Exemplo n.º 1
0
            private void CacheInfo(SyntaxList <AttributeListSyntax> attributeLists, string fullName, string type)
            {
                string nativeType = SyntaxUtils.GetNativeTypeNameFromAttributesLists(attributeLists);

                // Don't ever map enums onto strings.
                // We may need to make this more intelligent if we find we're stomping on types
                // we don't want to change
                if (nativeType != null && nativeType.Contains("STR"))
                {
                    return;
                }

                this.CacheInfo(fullName, type);

                if (ValidTypeRegex.IsMatch(type))
                {
                    this.map[fullName] = type;
                }
            }