Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Missing visitor-keys #555

Closed
14 tasks done
armano2 opened this issue Nov 20, 2018 · 4 comments
Closed
14 tasks done

Missing visitor-keys #555

armano2 opened this issue Nov 20, 2018 · 4 comments
Labels

Comments

@armano2
Copy link
Contributor

armano2 commented Nov 20, 2018

I did some checking what we can and what we are not able to visit and i found some missing stuff:

missing typeParameters

missing superTypeParameters

class foo extends bar<Foo>

missing implements

class foo implements bar, class foo implements bar, baz

missing import equals

import foo = require('foo')

invalid order:

missing decorators:

@armano2
Copy link
Contributor Author

armano2 commented Nov 21, 2018

small update

@armano2
Copy link
Contributor Author

armano2 commented Nov 21, 2018

@mysticatea i have question about implements do you think that it should be variable?

implements references to type -> interface which is type

@mysticatea
Copy link
Member

mysticatea commented Nov 21, 2018

No.

TypeScript has two namespaces: variables and types.

// Those are not redeclaration 
// because `interface` defines only in types and `const` defines only in variables.
interface A {}
const A = 0

// On the other hand, `class` defines in both types and variables.
class B {}

Then, the scopeManager doesn't have things of types namespace.
I think that we should provide a way to access types namespace, but we don't have it now.

@armano2
Copy link
Contributor Author

armano2 commented Nov 21, 2018

ok, i was thinking correctly,

i just wanted to confirm that :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants