Correct interface name attributes that are internal
Attributes with 'feature:' prefix are reserved for %feature, not internal usage.
This commit is contained in:
parent
f82efac231
commit
dd6af222f4
3 changed files with 23 additions and 24 deletions
|
|
@ -1581,9 +1581,8 @@ public:
|
|||
}
|
||||
return Language::pragmaDirective(n);
|
||||
}
|
||||
String* getQualifiedInterfaceName(Node* n)
|
||||
{
|
||||
String* ret = Getattr(n, "feature:interface:qname");
|
||||
String* getQualifiedInterfaceName(Node* n) {
|
||||
String* ret = Getattr(n, "interface:qname");
|
||||
if (!ret) {
|
||||
String *nspace = Getattr(n, "sym:nspace");
|
||||
String *iname = Getattr(n, "feature:interface:name");
|
||||
|
|
@ -1595,7 +1594,7 @@ public:
|
|||
} else {
|
||||
ret = Copy(iname);
|
||||
}
|
||||
Setattr(n, "feature:interface:qname", ret);
|
||||
Setattr(n, "interface:qname", ret);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
@ -1683,8 +1682,9 @@ public:
|
|||
}
|
||||
}
|
||||
}
|
||||
if (Hash* interface_classes = Getattr(n, "feature:interface:bases"))
|
||||
addInterfaceNameAndUpcasts(interface_list, interface_upcasts, interface_classes, c_classname);
|
||||
Hash* interface_bases = Getattr(n, "interface:bases");
|
||||
if (interface_bases)
|
||||
addInterfaceNameAndUpcasts(interface_list, interface_upcasts, interface_bases, c_classname);
|
||||
|
||||
bool derived = baseclass && getProxyName(c_baseclassname);
|
||||
if (derived && purebase_notderived)
|
||||
|
|
@ -2144,7 +2144,7 @@ public:
|
|||
String *post_code = NewString("");
|
||||
String *terminator_code = NewString("");
|
||||
bool is_interface = Getattr(parentNode(n), "feature:interface") != 0
|
||||
&& !static_flag && Getattr(n, "feature:interface:owner") == 0;
|
||||
&& !static_flag && Getattr(n, "interface:owner") == 0;
|
||||
|
||||
if (!proxy_flag)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue