8000 Tags · hdoan741/sorbet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: hdoan741/sorbet

Tags

0.4.4298.20190624105410-c553e082d

Toggle 0.4.4298.20190624105410-c553e082d's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The ke 10000 y has expired.
[prework] Add types to struct initialize (sorbet#1024)

* Rm unused include

* Avoid `if not cond then ... else ...`

* Fix typo

* Have ChalkODMProp::replaceDSL return a optional

It is ENFORCEd that if ret == SOME(x) then x != [].

This is in preparation for allowing ChalkODMProp::replaceDSL to return
something other than the vector<unique_ptr<ast::Expression>>.
Previously, because the only thing we were returning was that vector, we
could use the empty vector to signify "no desugaring occurred".

* Use ChalkODMProp::{, NodesAnd}Prop

* Collect the props

* Wrap a comment

* Use T

* Update a comment

The old comment seemed to be inaccurate in multiple places. This
attempts to make it more accurate.

Of course, it's likely that the old comment was probably accurate at one
point and became inaccurate over time as the code changed. The same
could happen to this new comment. And since the inaccuracy of the old
comment wasn't noticed until now, it's arguable that we could remove the
comment altogether and not lose much.

* Rm ws

* Make *.rbi have *.rb syntax in vscode

* Use arg0

* Rm an arg

* Rm a comment invariant

0.4.4297.20190624092135-a8ff4a027

Toggle 0.4.4297.20190624092135-a8ff4a027's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Move questions to Stack Overflow (sorbet#1016)

0.4.4296.20190623195608-84ca94bb5

Toggle 0.4.4296.20190623195608-84ca94bb5's commit message
Feature/1001 avoid segfault on empty literal mergestring (sorbet#1012)

* test(ast/desugar): Add EmptyTree Desuger Test

* test: Add empty_string_concatenation test

* fix: check if expression is EmptyTree or not on mergeStrings

* fix(ast/desuger/Desuger): Use ""sv

* fix(ast/desuger/test): Remove redundant test

0.4.4295.20190622153852-4b94e303e

Toggle 0.4.4295.20190622153852-4b94e303e's commit message
Changes for sorbet#979 - Document Prereq's (sorbet#1007)

* Changes for sorbet#979

Changes for sorbet#979

* Move to FAQ and make it look better

0.4.4294.20190622132941-732613a72

Toggle 0.4.4294.20190622132941-732613a72's commit message
Fix Float#truncate signature. (sorbet#988)

It can get an (optional) Integer as an argument and return Integer or Float
depending on the arg value.

0.4.4293.20190622105958-fa6d0d66d

Toggle 0.4.4293.20190622105958-fa6d0d66d's commit message

0.4.4292.20190622105850-6ea61e722

Toggle 0.4.4292.20190622105850-6ea61e722's commit message
Add comment on concurrent queue choice. (sorbet#1008)

0.4.4289.20190621154844-91b825ede

Toggle 0.4.4289.20190621154844-91b825ede's commit message
Desugar multiple assignment such that it returns rhs (sorbet#984)

* Desugar multiple assignment such that it returns rhs

We were not being faithful to what Ruby does with our multiple
assignment desugar. We were returning the result of a call to our magic
expand splat method which is almost always not what actually happens at
runtime.

Here is the result of the attached test case before this commit:

```ruby

extend T::Sig

sig {returns(T.nilable(T::Array[Integer]))}
def foo
  nil
end

T.reveal_type((a, b = foo)) # Revealed type: T.any(T::Array[Integer], [NilClass, NilClass])
T.reveal_type((c, *, d = 100)) # Revealed type: [Integer(100), NilClass] (2-tuple)
```

* Insert into the front instead of reserving space and poking

* Add example from sorbet#981

* Add ast.exp file

* Add helpful comment

Co-Authored-By: Jake Zimmerman <zimmerman.jake@gmail.com>

0.4.4288.20190621153645-d7cfa3b15

Toggle 0.4.4288.20190621153645-d7cfa3b15's commit message
Docs: Clarify what should be comitted to source control (sorbet#943)

* Docs: Clarify what should be comitted to source control

* Remove incorrect mention of Makefile

* Add cross reference to reasoning

0.4.4287.20190621153600-f4cc0eb3c

Toggle 0.4.4287.20190621153600-f4cc0eb3c's commit message
Docs: Fix description of `typed: strong` (sorbet#942)

* Docs: Fix description of `typed: strong`

* Explain that typed: strong is rarely used

* Fix prettier
0