lib/steep/interface/builder.rb in steep-1.7.0.dev.3 vs lib/steep/interface/builder.rb in steep-1.7.0
- old
+ new
@@ -60,9 +60,10 @@
end
def shape(type, config)
Steep.logger.tagged "shape(#{type})" do
if shape = raw_shape(type, config)
+ # Optimization that skips unnecesary substittuion
if type.free_variables.include?(AST::Types::Self.instance)
shape
else
if s = config.subst
shape.subst(s)