Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
17233 Interval cannot be "shuffled" https://pharo.fogbugz.com/f/cases/17233 17179 Semantic analysis doesnt compute RBArgumentNode instances https://pharo.fogbugz.com/f/cases/17179 http://files.pharo.org/image/50/50496.zip
- Loading branch information
Jenkins Build Server
authored and
ci
committed
Dec 14, 2015
1 parent
950ae89
commit 8812a3e
Showing
15 changed files
with
70 additions
and
14 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
Collections-Sequenceable.package/Interval.class/instance/copying/shuffled.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
shuffled | ||
"Return an array that contains my elements shuffled in a random order" | ||
^ self asArray shuffle |
9 changes: 9 additions & 0 deletions
9
Collections-Tests.package/IntervalTest.class/instance/tests/testShuffled.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
testShuffled | ||
|
||
| i is | | ||
i := (1 to: 20). | ||
is := i shuffled. | ||
self assert: i ~= is. | ||
self assert: i size equals: is size. | ||
self assert: (is includesAllOf: i). | ||
self assert: (i includesAllOf: is). |
5 changes: 5 additions & 0 deletions
5
OpalCompiler-Core.package/OCASTClosureAnalyzer.class/instance/visiting/visitArgumentNode_.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
visitArgumentNode: aVariableNode | ||
"mark argument nodes as such, if not already done" | ||
|
||
aVariableNode isArgument | ||
ifFalse: [ self changeVariableClass: aVariableNode ] |
1 change: 1 addition & 0 deletions
1
OpalCompiler-Core.package/OCASTClosureAnalyzer.class/instance/visiting/visitBlockNode_.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
OpalCompiler-Core.package/OCASTClosureAnalyzer.class/instance/visiting/visitMethodNode_.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...ureAnalyzerTest.class/instance/testing - variables/testBlockArgumentIsArgumentVariable.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
testBlockArgumentIsArgumentVariable | ||
| ast blockNode | | ||
ast := (OCOpalExamples>>#exampleForBlockArgument) parseTree. | ||
ast doSemanticAnalysis. | ||
blockNode := ast body statements first value. | ||
self assert: blockNode arguments notEmpty. | ||
self assert: blockNode arguments first isArgument | ||
|
8 changes: 8 additions & 0 deletions
8
...yzerTest.class/instance/testing - variables/testInlinedBlockArgumentIsArgumentVariable.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
testInlinedBlockArgumentIsArgumentVariable | ||
| ast blockNode | | ||
ast := (OCOpalExamples>>#exampleForInlinedBlockArgument) parseTree. | ||
ast doSemanticAnalysis. | ||
blockNode := ast body statements first arguments first. | ||
self assert: blockNode arguments notEmpty. | ||
self assert: blockNode arguments first isArgument | ||
|
7 changes: 7 additions & 0 deletions
7
...reAnalyzerTest.class/instance/testing - variables/testMethodArgumentIsArgumentVariable.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
testMethodArgumentIsArgumentVariable | ||
| ast | | ||
ast := (OCOpalExamples>>#exampleWithArgument:) parseTree. | ||
ast doSemanticAnalysis . | ||
self assert: ast arguments notEmpty. | ||
self assert: ast arguments first isArgument | ||
|
4 changes: 4 additions & 0 deletions
4
...Tests.package/OCOpalExamples.class/instance/examples-variables/exampleForBlockArgument.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
exampleForBlockArgument | ||
|b| | ||
b:= [ :blockArg | 1 ]. | ||
^ b |
3 changes: 3 additions & 0 deletions
3
...ackage/OCOpalExamples.class/instance/examples-variables/exampleForInlinedBlockArgument.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
exampleForInlinedBlockArgument | ||
|
||
1 ifNotNil:[ :value | ^ value ]. |
2 changes: 2 additions & 0 deletions
2
...er-Tests.package/OCOpalExamples.class/instance/examples-variables/exampleWithArgument_.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
exampleWithArgument: anArg | ||
^ anArg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
ScriptLoader50.package/ScriptLoader.class/instance/pharo - updates/update50495.st
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
ScriptLoader50.package/ScriptLoader.class/instance/pharo - updates/update50496.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
update50496 | ||
"self new update50496" | ||
self withUpdateLog: '17233 Interval cannot be "shuffled" | ||
https://pharo.fogbugz.com/f/cases/17233 | ||
17179 Semantic analysis doesnt compute RBArgumentNode instances | ||
https://pharo.fogbugz.com/f/cases/17179'. | ||
self loadTogether: self script50496 merge: false. | ||
self flushCaches. |
7 changes: 5 additions & 2 deletions
7
ScriptLoader50.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
commentForCurrentUpdate | ||
^ '17226 PluggableListMorph>>#userString should return one string | ||
https://pharo.fogbugz.com/f/cases/17226' | ||
^ '17233 Interval cannot be "shuffled" | ||
https://pharo.fogbugz.com/f/cases/17233 | ||
17179 Semantic analysis doesnt compute RBArgumentNode instances | ||
https://pharo.fogbugz.com/f/cases/17179' |