asedunov / intellij-crystal-lang

An IntelliJ plugin for Crystal language
Apache License 2.0
39 stars 5 forks source link

Structure View should support expressions as type arguments #64

Closed asedunov closed 1 year ago

asedunov commented 1 year ago

Crystal generics can accept a limited ranged of expressions aside of types, namely:

These arguments must be properly rendered in Structure View. For example:

a : Foo(1, 2.5)

b : Foo(sizeof(X), instance_sizeof(X))

c : Foo(offsetof(X, @z))