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
Hey so I am trying to solve a problem using sourceKitten.
In our source code people are don't like to insert the static type annotation, multiply this by 50 developers and it results in slow build times.
I was thinking of using source kitten to reveal the structure of the source and then reinsert the static types, so that we can do whatever we can to eat away at slow build times pre compile.
However it seems that in my example i,j we do not get the type to be inferred to be an Int.
Is this something we can build into source kitten ? i.e obtain inferred types in the structure?
The structure query just describes the parsed text of the program. You can use the SourceKit cursor-info request to get a type-checked view of an identifier -- sourcekitten doc does this for declarations which might be enough for you to get started.
Hey so I am trying to solve a problem using sourceKitten.
In our source code people are
don't like
to insert the static type annotation, multiply this by 50 developers and it results in slow build times.I was thinking of using source kitten to reveal the structure of the source and then reinsert the static types, so that we can do whatever we can to eat away at slow build times pre compile.
However it seems that in my example i,j we do not get the type to be inferred to be an Int.
Is this something we can build into source kitten ? i.e obtain inferred types in the structure?
sourcekitten structure --file /Users/raisintoastllc/Desktop/example.swift
The text was updated successfully, but these errors were encountered: