Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find type #85

Open
liuqiba opened this issue May 24, 2019 · 1 comment
Open

Find type #85

liuqiba opened this issue May 24, 2019 · 1 comment
Labels

Comments

@liuqiba
Copy link

liuqiba commented May 24, 2019

Variables can not find type of interface

@RobinKa
Copy link
Owner

RobinKa commented May 28, 2019

This is because ReflectionProvider.GetNonStaticTypes()

public IEnumerable<TypeSpecifier> GetNonStaticTypes()
{
return GetValidTypes().Where(
t => t.IsPublic() && !(t.IsAbstract && t.IsSealed))
.OrderBy(t => t.ContainingNamespace?.Name)
.ThenBy(t => t.Name)
.Select(t => ReflectionConverter.TypeSpecifierFromSymbol(t));
}
only returns non-abstract types which was done because the same function is used for selecting types in constructors for example. As a solution a query system for types similar to the variable and method one should be created. I will work on this when I have some time.

Thank you!

@RobinKa RobinKa added the bug label May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants