You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Access specifiers are individually applied to each field/method in Java and C#; there are no regions like in C++. Also, the default visibility (when there is no specifier) varies based on language and whether it is a struct/class/interface.
Leading specifiers for all languages are not collected for functions and decls.
For example, the const will be collected for the function below, but not the virtual.
I believe this is due to an the Type policy overriding the function/decl policy and collecting the specifiers there instead. The Python function below does collect the leading specifier, since it is not nested in a type:
asyncdefdo_something():
pass
The isssue40 branch works around this by post-processing the type data when it is added to the function/decl, but it would be more efficient if there were a way to collect the specifiers during parsing.
I have known about this for a long time. I want srcML to be changed to not put these in the type, as they don't belong there. If not, I need a list of all specifiers that appear in type but apply to function/method.
Access specifiers are individually applied to each field/method in Java and C#; there are no regions like in C++. Also, the default visibility (when there is no specifier) varies based on language and whether it is a struct/class/interface.