-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from hpi-swa-teaching/dev
Release
- Loading branch information
Showing
356 changed files
with
2,340 additions
and
26 deletions.
There are no files selected for viewing
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,25 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# Select platform(s) | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
# Select compatible Smalltalk image(s) | ||
smalltalk: [ Squeak64-trunk, Squeak64-5.3, Squeak64-5.2 ] | ||
name: ${{ matrix.smalltalk }} on ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-version: ${{ matrix.smalltalk }} | ||
- run: smalltalkci -s ${{ matrix.smalltalk }} | ||
timeout-minutes: 15 |
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,11 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'OmegaPrint', | ||
#directory : 'packages', | ||
#platforms : [ #squeak ], | ||
#load : [ 'tests' ], | ||
#useLatestMetacello : true | ||
} | ||
] | ||
} |
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,5 +1,5 @@ | ||
OrderedDictionary { | ||
'packages\/BaselineOfOhmPrettyPrint.package' : #SquotCypressCodeSerializer, | ||
'packages\/OmegaPrint-Core.package' : #SquotCypressCodeSerializer, | ||
'packages\/OhmPrettyPrint.package' : #SquotCypressCodeSerializer | ||
} | ||
'packages\/OmegaPrint-Tests.package' : #SquotCypressCodeSerializer, | ||
'packages\/BaselineOfOmegaPrint.package' : #SquotCypressCodeSerializer | ||
} |
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,9 +1,11 @@ | ||
# OhmPrettyPrint | ||
dev:  | ||
master:  | ||
|
||
## How to install | ||
``` | ||
```smalltalk | ||
Metacello new | ||
baseline: 'OhmPrettyPrint'; | ||
repository: 'github://hpi-swa-teaching/OhmPrettyPrint'; | ||
load. | ||
repository: 'github://HPI-SWA-Teaching/OhmPrettyPrint:dev/packages'; | ||
load | ||
``` |
11 changes: 0 additions & 11 deletions
11
...ges/BaselineOfOhmPrettyPrint.package/BaselineOfOhmPrettyPrint.class/instance/baseline..st
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...ges/BaselineOfOhmPrettyPrint.package/BaselineOfOhmPrettyPrint.class/methodProperties.json
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/BaselineOfOhmPrettyPrint.package/monticello.meta/categories.st
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
packages/BaselineOfOmegaPrint.package/BaselineOfOmegaPrint.class/instance/baseline..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,13 @@ | ||
baseline | ||
baseline: spec | ||
<baseline> | ||
spec for: #common do: [ | ||
spec baseline: 'Ohm' with: [ | ||
spec | ||
repository: 'github://felixauringer/ohm-s:swt-submission/packages']. | ||
spec | ||
package: 'OmegaPrint-Core' with: [spec requires: #('Ohm')]; | ||
package: 'OmegaPrint-Tests' with: [ spec requires: #('default') ]; | ||
group: 'default' with: #('OmegaPrint-Core'); | ||
group: 'tests' with: #('OmegaPrint-Tests') | ||
] |
6 changes: 6 additions & 0 deletions
6
packages/BaselineOfOmegaPrint.package/BaselineOfOmegaPrint.class/instance/projectClass.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,6 @@ | ||
accessing | ||
projectClass | ||
|
||
^ Smalltalk | ||
at: #MetacelloCypressBaselineProject | ||
ifAbsent: [ super projectClass ] |
6 changes: 6 additions & 0 deletions
6
packages/BaselineOfOmegaPrint.package/BaselineOfOmegaPrint.class/methodProperties.json
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,6 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"baseline:" : "fau 8/4/2020 09:49", | ||
"projectClass" : "PK 8/2/2020 20:17" } } |
4 changes: 2 additions & 2 deletions
4
...ineOfOhmPrettyPrint.class/properties.json → ...aselineOfOmegaPrint.class/properties.json
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
1 change: 1 addition & 0 deletions
1
packages/BaselineOfOmegaPrint.package/monticello.meta/categories.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 @@ | ||
SystemOrganization addCategory: #BaselineOfOmegaPrint! |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
packages/OmegaPrint-Core.package/CodeHolder.extension/instance/isModeStyleable.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 @@ | ||
*OmegaPrint-Core | ||
isModeStyleable | ||
"determine whether the current mode can be styled" | ||
^ self showingSource or: [ self showingPrettyPrint ] or: [ self isShowingOmegaPrint ] |
4 changes: 4 additions & 0 deletions
4
packages/OmegaPrint-Core.package/CodeHolder.extension/instance/isShowingOmegaPrint.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 @@ | ||
*OmegaPrint-Core | ||
isShowingOmegaPrint | ||
|
||
^ contentsSymbol = #omegaPrint |
6 changes: 6 additions & 0 deletions
6
packages/OmegaPrint-Core.package/CodeHolder.extension/instance/omegaPrintString.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,6 @@ | ||
*OmegaPrint-Core | ||
omegaPrintString | ||
"returns a string whether omegaPrint is displayed" | ||
^ ((contentsSymbol = #omegaPrint) | ||
ifTrue: ['<yes>'] | ||
ifFalse: ['<no>']) , 'omegaPrint' |
26 changes: 26 additions & 0 deletions
26
.../OmegaPrint-Core.package/CodeHolder.extension/instance/sourceStringPrettifiedAndDiffed.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,26 @@ | ||
*OmegaPrint-Core | ||
sourceStringPrettifiedAndDiffed | ||
"Answer a copy of the source code for the selected message, transformed by diffing and pretty-printing exigencies" | ||
| class selector sourceString prettifierClass | | ||
class := self selectedClassOrMetaClass. | ||
selector := self selectedMessageName. | ||
(class isNil or: [ selector isNil ]) ifTrue: [ ^ 'missing' ]. | ||
sourceString := class | ||
ultimateSourceCodeAt: selector | ||
ifAbsent: [ ^ 'error' ]. | ||
self | ||
validateMessageSource: sourceString | ||
forSelector: selector | ||
inClass: class. | ||
(#(#prettyPrint #prettyDiffs) includes: contentsSymbol) | ||
ifTrue: [ prettifierClass := class prettyPrinterClass ]. | ||
(#omegaPrint = contentsSymbol) | ||
ifTrue: [ prettifierClass := OPPrinter ]. | ||
prettifierClass ifNotNil: | ||
[ sourceString := prettifierClass | ||
format: sourceString | ||
in: class | ||
notifying: nil ]. | ||
self showingAnyKindOfDiffs | ||
ifTrue: [ sourceString := self diffFromPriorSourceFor: sourceString ]. | ||
^ sourceString |
9 changes: 9 additions & 0 deletions
9
packages/OmegaPrint-Core.package/CodeHolder.extension/instance/toggleOmegaPrint.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 @@ | ||
*OmegaPrint-Core | ||
toggleOmegaPrint | ||
|
||
self restoreTextualCodingPane. | ||
self okToChange ifTrue: [ self isShowingOmegaPrint | ||
ifTrue: [ contentsSymbol := #source ] | ||
ifFalse: [ contentsSymbol := #omegaPrint ]. | ||
self setContentsToForceRefetch. | ||
self contentsChanged ] |
9 changes: 9 additions & 0 deletions
9
packages/OmegaPrint-Core.package/CodeHolder.extension/methodProperties.json
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 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"isModeStyleable" : "PK 6/1/2020 18:27", | ||
"isShowingOmegaPrint" : "fau 8/4/2020 10:22", | ||
"omegaPrintString" : "fau 8/4/2020 10:22", | ||
"sourceStringPrettifiedAndDiffed" : "PK 6/3/2020 13:21", | ||
"toggleOmegaPrint" : "PS 8/4/2020 07:04" } } |
2 changes: 2 additions & 0 deletions
2
packages/OmegaPrint-Core.package/CodeHolder.extension/properties.json
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 @@ | ||
{ | ||
"name" : "CodeHolder" } |
10 changes: 10 additions & 0 deletions
10
packages/OmegaPrint-Core.package/MessageSet.extension/instance/aboutToStyle..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,10 @@ | ||
*OmegaPrint-Core | ||
aboutToStyle: aStyler | ||
"This is a notification that aStyler is about to re-style its text. | ||
Answer true to allow styling to proceed, or false to veto the styling" | ||
| type | | ||
self isModeStyleable ifFalse: [ ^ false ]. | ||
type := self editSelection. | ||
(#( newMessage editMessage editClass newClass ) includes: type) ifFalse: [ ^ false ]. | ||
aStyler classOrMetaClass: ((type = #editClass or: [ type = #newClass ]) ifFalse: [ self selectedClassOrMetaClass ]). | ||
^ true |
4 changes: 4 additions & 0 deletions
4
packages/OmegaPrint-Core.package/MessageSet.extension/instance/editSelection.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 @@ | ||
*OmegaPrint-Core | ||
editSelection | ||
|
||
^ editSelection |
7 changes: 7 additions & 0 deletions
7
packages/OmegaPrint-Core.package/MessageSet.extension/instance/initialize.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 @@ | ||
*OmegaPrint-Core | ||
initialize | ||
|
||
super initialize. | ||
self | ||
messageList: OrderedCollection new; | ||
editSelection: #editMessage |
4 changes: 4 additions & 0 deletions
4
packages/OmegaPrint-Core.package/MessageSet.extension/instance/messageList..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 @@ | ||
*OmegaPrint-Core | ||
messageList: aCollection | ||
|
||
messageList := aCollection |
8 changes: 8 additions & 0 deletions
8
packages/OmegaPrint-Core.package/MessageSet.extension/methodProperties.json
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 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"aboutToStyle:" : "TA 6/25/2020 20:30", | ||
"editSelection" : "TA 6/25/2020 19:49", | ||
"initialize" : "PK 7/2/2020 14:34", | ||
"messageList:" : "PK 7/2/2020 14:34" } } |
2 changes: 2 additions & 0 deletions
2
packages/OmegaPrint-Core.package/MessageSet.extension/properties.json
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 @@ | ||
{ | ||
"name" : "MessageSet" } |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
packages/OmegaPrint-Core.package/OPPrinter.class/class/evaluate.startingFrom..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 @@ | ||
format | ||
evaluate: aString startingFrom: aSymbol | ||
|
||
| matchResult evaluator | | ||
matchResult := OhmExplicitSendsSmalltalk | ||
match: aString | ||
startingFrom: aSymbol. | ||
evaluator := OhmExplicitSendsSmalltalk synthesizedAttribute: OPPrinter new. | ||
^ evaluator value: matchResult cst |
6 changes: 6 additions & 0 deletions
6
packages/OmegaPrint-Core.package/OPPrinter.class/class/format.in.notifying..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,6 @@ | ||
format | ||
format: aString in: aClass notifying: ignored | ||
"interface as used by content display in squeak" | ||
^ self | ||
evaluate: aString | ||
startingFrom: #MethodDeclaration |
6 changes: 6 additions & 0 deletions
6
packages/OmegaPrint-Core.package/OPPrinter.class/instance/BinaryMessageSend.with.and..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,6 @@ | ||
actions | ||
BinaryMessageSend: aNode with: aBinaryMessageReceiver and: aBinaryMessage | ||
|
||
^ self | ||
join: { aBinaryMessageReceiver . aBinaryMessage } | ||
separatedBy: ' ' |
20 changes: 20 additions & 0 deletions
20
.../OmegaPrint-Core.package/OPPrinter.class/instance/BlockLiteralNormal.with.and.and.and..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,20 @@ | ||
actions | ||
BlockLiteralNormal: aNode with: aTerminal and: blockArguments and: executableCode and: anotherTerminal | ||
|
||
| result resultArguments resultVariables resultCode separator | | ||
self increaseIndentation. | ||
resultArguments := self value: blockArguments. | ||
resultCode := self value: executableCode. | ||
resultVariables := self value: executableCode firstChild. | ||
separator := self | ||
spaceInBlockWith: resultArguments | ||
and: resultVariables | ||
and: resultCode. | ||
result := self | ||
join: { resultArguments . resultCode } | ||
separatedBy: separator. | ||
self decreaseIndentation. | ||
^ self | ||
include: result | ||
between: '[' | ||
and: ']' |
7 changes: 7 additions & 0 deletions
7
packages/OmegaPrint-Core.package/OPPrinter.class/instance/ByteArrayLiteral.with.and.and..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 @@ | ||
actions | ||
ByteArrayLiteral: aNode with: aTerminal and: integerLiterals and: anotherTerminal | ||
|
||
^ self | ||
include: (self value: integerLiterals) | ||
between: '#[' | ||
and: ']' |
6 changes: 6 additions & 0 deletions
6
packages/OmegaPrint-Core.package/OPPrinter.class/instance/CascadedMessages.with.and.and..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,6 @@ | ||
actions | ||
CascadedMessages: aNode with: aMessageChain and: aTerminal and: messageChains | ||
|
||
^ self | ||
join: { aMessageChain } , messageChains children | ||
separatedBy: ';' , self newline |
6 changes: 6 additions & 0 deletions
6
packages/OmegaPrint-Core.package/OPPrinter.class/instance/ExecutableCode.with.and.and..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,6 @@ | ||
actions | ||
ExecutableCode: aNode with: aLocalVariableDeclarationList and: pragmas and: moreExecutableCode | ||
|
||
^ self | ||
join: { aLocalVariableDeclarationList . pragmas . moreExecutableCode } | ||
separatedBy: self newline |
6 changes: 6 additions & 0 deletions
6
...ges/OmegaPrint-Core.package/OPPrinter.class/instance/ExpressionBinaryCascade.with.and..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,6 @@ | ||
actions | ||
ExpressionBinaryCascade: aNode with: aBinaryMessageSend and: cascadedMessages | ||
|
||
^ self | ||
cascadeWith: aBinaryMessageSend | ||
and: cascadedMessages |
6 changes: 6 additions & 0 deletions
6
...es/OmegaPrint-Core.package/OPPrinter.class/instance/ExpressionOperandCascade.with.and..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,6 @@ | ||
actions | ||
ExpressionOperandCascade: aNode with: anOperand and: cascadedMessages | ||
|
||
^ self | ||
cascadeWith: anOperand | ||
and: cascadedMessages |
6 changes: 6 additions & 0 deletions
6
...ages/OmegaPrint-Core.package/OPPrinter.class/instance/ExpressionUnaryCascade.with.and..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,6 @@ | ||
actions | ||
ExpressionUnaryCascade: aNode with: anUnaryMessageSend and: cascadedMessages | ||
|
||
^ self | ||
cascadeWith: anUnaryMessageSend | ||
and: cascadedMessages |
6 changes: 6 additions & 0 deletions
6
packages/OmegaPrint-Core.package/OPPrinter.class/instance/FinalStatement.with.and.and..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,6 @@ | ||
actions | ||
FinalStatement: aNode with: aTerminal and: aStatement and: anotherTerminal | ||
|
||
^ self | ||
join: { aTerminal . aStatement } | ||
separatedBy: ' ' |
13 changes: 13 additions & 0 deletions
13
packages/OmegaPrint-Core.package/OPPrinter.class/instance/KeywordMessageSend.with.and..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,13 @@ | ||
actions | ||
KeywordMessageSend: aNode with: aKeywordMessageReceiver and: keywordMessageSegments | ||
|
||
| separator result | | ||
self increaseIndentation. | ||
keywordMessageSegments numberOfChildren < 2 | ||
ifTrue: [ separator := String space ] | ||
ifFalse: [ separator := self newline ]. | ||
self decreaseIndentation. | ||
result := self | ||
join: { aKeywordMessageReceiver } , keywordMessageSegments children | ||
separatedBy: separator. | ||
^ result |
4 changes: 4 additions & 0 deletions
4
...ges/OmegaPrint-Core.package/OPPrinter.class/instance/LiteralArrayLiteral.with.and.and..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 @@ | ||
actions | ||
LiteralArrayLiteral: aNode with: aTerminal and: literalArrayLiteralElements and: anotherTerminal | ||
|
||
^ self literalArrayWith: literalArrayLiteralElements |
4 changes: 4 additions & 0 deletions
4
...e.package/OPPrinter.class/instance/LiteralArrayLiteralInLiteralArray.with.and.and.and..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 @@ | ||
actions | ||
LiteralArrayLiteralInLiteralArray: aNode with: aTerminal and: anotherTerminal and: literalArrayLiteralElements and: yetAnotherTerminal | ||
|
||
^ self literalArrayWith: literalArrayLiteralElements |
14 changes: 14 additions & 0 deletions
14
packages/OmegaPrint-Core.package/OPPrinter.class/instance/MethodDeclaration.with.and.and..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,14 @@ | ||
actions | ||
MethodDeclaration: aNode with: aMethodHeader and: pragmas and: executableCode | ||
|
||
| result resultBody resultHeader | | ||
resultHeader := self value: aMethodHeader. | ||
self increaseIndentation. | ||
resultBody := self | ||
join: { pragmas . executableCode . self lastComment: aNode } | ||
separatedBy: self newline. | ||
result := self | ||
join: { resultHeader . resultBody } | ||
separatedBy: String cr , self newline. | ||
self decreaseIndentation. | ||
^ result |
Oops, something went wrong.