-
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.
classified methods, renaming, helper methods
- Loading branch information
oleschl
committed
Jul 12, 2020
1 parent
97300dc
commit 901630c
Showing
29 changed files
with
46 additions
and
40 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/RichTextEditing-Core.package/DocumentReadStream.class/class/on..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,4 +1,4 @@ | ||
as yet unclassified | ||
instance creation | ||
on: aDocument | ||
|
||
^ self basicNew on: aDocument |
6 changes: 2 additions & 4 deletions
6
...es/RichTextEditing-Core.package/DocumentReadStream.class/instance/beginningOfStructure.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,11 +1,9 @@ | ||
stop conditions | ||
beginningOfStructure | ||
| currentStructures nextStructures diff | | ||
| diff | | ||
|
||
self position + 1 > self readLimit ifTrue: [^ nil]. | ||
currentStructures := self collection attributesAt: self position. | ||
nextStructures := self collection attributesAt: self position + 1. | ||
diff := nextStructures difference: currentStructures. | ||
diff := self structureDifferenceBetween: self position + 1 and: self position. | ||
^ diff isEmpty | ||
ifTrue: [nil] | ||
ifFalse: [{#beginningOfStructure. diff}] |
4 changes: 0 additions & 4 deletions
4
packages/RichTextEditing-Core.package/DocumentReadStream.class/instance/collection..st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
packages/RichTextEditing-Core.package/DocumentReadStream.class/instance/currentCharacter.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 @@ | ||
accessing | ||
currentCharacter | ||
|
||
^ self text at: self position |
6 changes: 2 additions & 4 deletions
6
packages/RichTextEditing-Core.package/DocumentReadStream.class/instance/endOfStructure.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,11 +1,9 @@ | ||
stop conditions | ||
endOfStructure | ||
| currentStructures nextStructures diff | | ||
| diff | | ||
|
||
self position + 1 > self readLimit ifTrue: [^ nil]. | ||
currentStructures := self collection attributesAt: self position. | ||
nextStructures := self collection attributesAt: self position + 1. | ||
diff := currentStructures difference: nextStructures. | ||
diff := self structureDifferenceBetween: self position and: self position + 1. | ||
^ diff isEmpty | ||
ifTrue: [nil] | ||
ifFalse: [{#endOfStructure. diff}] |
2 changes: 1 addition & 1 deletion
2
packages/RichTextEditing-Core.package/DocumentReadStream.class/instance/lineBreak.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,6 +1,6 @@ | ||
stop conditions | ||
lineBreak | ||
|
||
^ ((self collection at: self position) = Character lf) | ||
^ self currentCharacter = Character lf | ||
ifTrue: [#lineFeed] | ||
ifFalse: [nil] |
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
packages/RichTextEditing-Core.package/DocumentReadStream.class/instance/paragraph.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,6 +1,6 @@ | ||
stop conditions | ||
paragraph | ||
|
||
^ ((self collection at: self position) = self paragraphCharacter) | ||
^ self currentCharacter = self paragraphCharacter | ||
ifTrue: [#paragraph] | ||
ifFalse: [nil] |
2 changes: 1 addition & 1 deletion
2
...ages/RichTextEditing-Core.package/DocumentReadStream.class/instance/paragraphCharacter.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,4 +1,4 @@ | ||
as yet unclassified | ||
constants | ||
paragraphCharacter | ||
|
||
^Character value: 182 |
2 changes: 1 addition & 1 deletion
2
packages/RichTextEditing-Core.package/DocumentReadStream.class/instance/stopConditions.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,4 +1,4 @@ | ||
stop conditions | ||
accessing | ||
stopConditions | ||
|
||
^ {self endOfDocument. | ||
|
4 changes: 4 additions & 0 deletions
4
...Editing-Core.package/DocumentReadStream.class/instance/structureDifferenceBetween.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 @@ | ||
stop conditions | ||
structureDifferenceBetween: firstPosition and: secondPosition | ||
|
||
^ (self text attributesAt: firstPosition) difference: (self text attributesAt: secondPosition) |
4 changes: 4 additions & 0 deletions
4
packages/RichTextEditing-Core.package/DocumentReadStream.class/instance/text..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 @@ | ||
accessing | ||
text: aText | ||
|
||
collection := aText |
2 changes: 1 addition & 1 deletion
2
...ntReadStream.class/instance/collection.st → ...DocumentReadStream.class/instance/text.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,4 +1,4 @@ | ||
accessing | ||
collection | ||
text | ||
|
||
^ collection |
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tream.class/instance/boldTextStructure.st → ...Tests.class/instance/boldTextStructure.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,4 +1,4 @@ | ||
as yet unclassified | ||
constants | ||
boldTextStructure | ||
|
||
^ TextStructure bold |
2 changes: 1 addition & 1 deletion
2
...mentReadStream.class/instance/document.st → ...eadStreamTests.class/instance/document.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,4 +1,4 @@ | ||
as yet unclassified | ||
accessing | ||
document | ||
|
||
^ self editorModel bufferDocument |
2 changes: 1 addition & 1 deletion
2
...class/instance/isBeginningOfStructure..st → ...class/instance/isBeginningOfStructure..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,4 +1,4 @@ | ||
as yet unclassified | ||
utilities | ||
isBeginningOfStructure: aListElement | ||
|
||
^ aListElement first = #beginningOfStructure |
2 changes: 1 addition & 1 deletion
2
...tream.class/instance/isEndOfStructure..st → ...Tests.class/instance/isEndOfStructure..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,4 +1,4 @@ | ||
as yet unclassified | ||
utilities | ||
isEndOfStructure: listElement | ||
|
||
^ listElement first = #endOfStructure | ||
|
2 changes: 1 addition & 1 deletion
2
...ReadStream.class/instance/isParagraph..st → ...treamTests.class/instance/isParagraph..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,4 +1,4 @@ | ||
as yet unclassified | ||
utilities | ||
isParagraph: aListElement | ||
|
||
^ aListElement = #paragraph |
2 changes: 1 addition & 1 deletion
2
...eam.class/instance/italicTextStructure.st → ...sts.class/instance/italicTextStructure.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,4 +1,4 @@ | ||
as yet unclassified | ||
constants | ||
italicTextStructure | ||
|
||
^ TextStructure italic |
2 changes: 1 addition & 1 deletion
2
...ream.class/instance/paragraphCharacter.st → ...ests.class/instance/paragraphCharacter.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,4 +1,4 @@ | ||
as yet unclassified | ||
constants | ||
paragraphCharacter | ||
|
||
^ Character value: 182 |
2 changes: 1 addition & 1 deletion
2
...ureAndBeginOfStructureIncludeStructure.st → ...ureAndBeginOfStructureIncludeStructure.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
...xtSectionOfTextAndListOfStopConditions.st → ...xtSectionOfTextAndListOfStopConditions.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
...lass/instance/testUS59ReadStreamExists.st → ...lass/instance/testUS59ReadStreamExists.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,4 +1,4 @@ | ||
as yet unclassified | ||
acceptance-tests | ||
testUS59ReadStreamExists | ||
|
||
self assert: (Smalltalk hasClassNamed: #DocumentReadStream) |
2 changes: 1 addition & 1 deletion
2
...estUS59StopConditionsAreInCorrectOrder.st → ...estUS59StopConditionsAreInCorrectOrder.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,4 +1,4 @@ | ||
as yet unclassified | ||
acceptance-tests | ||
testUS59StopConditionsAreInCorrectOrder | ||
|
||
| stream stopConditions | | ||
|
2 changes: 1 addition & 1 deletion
2
...ream.class/instance/textWithAttributes.st → ...ests.class/instance/textWithAttributes.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,4 +1,4 @@ | ||
as yet unclassified | ||
constants | ||
textWithAttributes | ||
|
||
| text | | ||
|
File renamed without changes.
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