Exemplo n.º 1
0
        public static PapyrusType GetReferencedType(this IdentifierNode node)
        {
            // Disambiguation is only necessary for structs and namespaces.
#if FALLOUT4
            var referencedTypeName = node.GetScriptFile()?.ResolveRelativeTypeName(node.Text) ?? node.Text;
#elif SKYRIM
            var referencedTypeName = node.Text;
#endif
            var isArray = (node is TypeIdentifierNode asTypeIdentifier) ? asTypeIdentifier.IsArray : false;
            return(node.GetTypeChecker().GetTypeForObjectId(referencedTypeName, isArray));
        }