Tags: sorbet/sorbet
Tags
Introduce RBS alternative to `T.bind` (#8910) * Simplify body visit Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> * Rename `walkNodes` -> `walkNode` Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> * Extract `walkNodes` Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> * Fix annotations in `ensure` Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> * Generate new synthetic parser node `RBSPlaceholder` Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> * Create placeholder node for T.bind during comment association Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> * Rewrite `#: self as Type` into `T.bind(self, Type)` Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> * Add documentation Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> * Rename `TBind` -> `TBindSelf` Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> --------- Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Introduce RBS alternative to `T.absurd` (#8916) * Fix RBS annotations inside `else` for a `case` with an empty `when` body Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> * Add support for `#: absurd` RBS comment Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> * Add documentation for `#: absurd` Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> --------- Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
RBS: Handle RBS annotations inside `case` .. `in` patterns (#8901) * Handle RBS annotations in case .. in pattern matching Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> * Extract `consumeCommentsInsideNode` Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com> --------- Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Add kwargs and block support to BasicObject#__send__ (#8896) * Add kwargs and block support to BasicObject#__send__ * [PR feedback] -- allow blocks with params to not be mistyped as nil internally * Update rbi/core/basic_object.rbi --------- Co-authored-by: Winnie Wu <winnie.wu@bridge.xyz> Co-authored-by: Jake Zimmerman <zimmerman.jake@gmail.com>
PreviousNext