-
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.
- Loading branch information
Showing
57 changed files
with
376 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSLintTest.class/instance/defaultTimeout.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 @@ | ||
running - timeout | ||
defaultTimeout | ||
^ 60000 |
5 changes: 5 additions & 0 deletions
5
src/GitS-Tests.package/GSLintTest.class/instance/expectedUnsentGitAssetLoaderMethods.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 @@ | ||
expected-unsent | ||
expectedUnsentGitAssetLoaderMethods | ||
^ (#(loadAnimatedImageMorph: loadAnimation: loadImageMorph: loadByteArray: loadString: assetPaths) | ||
collect: [:selector | GitAssetLoader>>selector]) | ||
copyWith: GitAssetLoader class>>#for:basePath: |
6 changes: 6 additions & 0 deletions
6
src/GitS-Tests.package/GSLintTest.class/instance/expectedUnsentMethods.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 @@ | ||
expected-unsent | ||
expectedUnsentMethods | ||
^ | ||
self expectedUnsentGitAssetLoaderMethods, | ||
self expectedUnsentMethodsForFutureUse, | ||
self expectedUnsentMethodsThatHaveHiddenSends |
7 changes: 7 additions & 0 deletions
7
src/GitS-Tests.package/GSLintTest.class/instance/expectedUnsentMethodsForFutureUse.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 @@ | ||
expected-unsent | ||
expectedUnsentMethodsForFutureUse | ||
^ { | ||
GSTonelMapper>>#writeTimestamps:. | ||
GSRebaseOperationMerge>>#messageCommit. | ||
GSRebaseOperationMerge>>#oneLineMessage. | ||
} |
5 changes: 5 additions & 0 deletions
5
src/GitS-Tests.package/GSLintTest.class/instance/expectedUnsentMethodsThatHaveHiddenSends.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 @@ | ||
expected-unsent | ||
expectedUnsentMethodsThatHaveHiddenSends | ||
^ { | ||
GSPreferences class>>#showBase:. "asSimpleSetter used in Preferences class>>addPragmaPreference:" | ||
} |
21 changes: 21 additions & 0 deletions
21
src/GitS-Tests.package/GSLintTest.class/instance/findAbstractMethodsInConcreteClasses.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,21 @@ | ||
finding | ||
findAbstractMethodsInConcreteClasses | ||
^ CurrentReadOnlySourceFiles cacheDuring: [ | ||
(Array streamContents: [:stream | | methodsWithClasses | | ||
methodsWithClasses := IdentityDictionary new. | ||
(self packageInfo classesAndMetaClasses | ||
reject: [:each | each theNonMetaClass isAbstract]) | ||
do: [:class | | ||
class allSelectors do: [:selector | | compiledMethod | | ||
compiledMethod := class lookupSelector: selector. | ||
(methodsWithClasses | ||
at: compiledMethod | ||
ifAbsentPut: [OrderedCollection new]) | ||
add: class]]. | ||
(methodsWithClasses | ||
associationsSelect: [:each | | ||
(self ignoredAbstractMethods includes: each key) not]) | ||
keysAndValuesDo: [:compiledMethod :classes | | ||
(self isAbstractMethod: compiledMethod) | ||
ifTrue: [stream nextPut: compiledMethod -> classes]]]) | ||
sorted: #name ascending] |
21 changes: 21 additions & 0 deletions
21
src/GitS-Tests.package/GSLintTest.class/instance/findUnimplementedAndUnsentMethods.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,21 @@ | ||
finding | ||
findUnimplementedAndUnsentMethods | ||
| implemented sent packageImplemented packageSent unimplemented unsent | | ||
implemented := Set new. | ||
implemented addAll: Smalltalk globals keys. | ||
sent := Set new. | ||
packageImplemented := OrderedCollection new. | ||
packageSent := OrderedCollection new. | ||
CurrentReadOnlySourceFiles cacheDuring: [ | ||
(SystemNavigation default allBehaviors gather: [:each | each methodDict values]) contents | ||
do: [:compiledMethod | | included | | ||
included := self packageInfo includesMethodReference: compiledMethod methodReference. | ||
implemented add: compiledMethod selector. | ||
included ifTrue: [packageImplemented add: compiledMethod]. | ||
self sendsOf: compiledMethod do: [:selector | | ||
sent add: selector. | ||
included ifTrue: [packageSent add: compiledMethod -> selector]]] | ||
displayingProgress: [:each | 'Analyzing ', each methodReference]]. | ||
unimplemented := packageSent reject: [:each | implemented includes: each value]. | ||
unsent := (packageImplemented reject: [:each | sent includes: each selector]). | ||
^ Dictionary newFrom: {'unimplemented' -> unimplemented. 'unsent' -> unsent} |
7 changes: 7 additions & 0 deletions
7
src/GitS-Tests.package/GSLintTest.class/instance/ignoredAbstractMethods.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 @@ | ||
ignored-abstract-methods | ||
ignoredAbstractMethods | ||
^ { | ||
TextAttribute>>#closeHtmlOn:. | ||
TextAttribute>>#openHtmlOn:. | ||
Object>>#writeCypressJsonOn:forHtml:indent:. | ||
} |
8 changes: 8 additions & 0 deletions
8
src/GitS-Tests.package/GSLintTest.class/instance/ignoredSends.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 @@ | ||
ignored-sends | ||
ignoredSends | ||
^ | ||
self ignoredSendsForCommitType, | ||
self ignoredSendsForLegacyMetadataLoading, | ||
self ignoredSendsForLegacyProjectImporting, | ||
self ignoredSendsForTextDiffing, | ||
self ignoredSendsForUnmappedPathDialogOptions |
7 changes: 7 additions & 0 deletions
7
src/GitS-Tests.package/GSLintTest.class/instance/ignoredSendsForCommitType.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 @@ | ||
ignored-sends | ||
ignoredSendsForCommitType | ||
^ { | ||
#actionPick:message:windowTitlePrefix:revert:amend:alwaysOpenDialog:. | ||
#mergeCommitIntoHead:mergeBase:message:windowTitle:alwaysOpenDialog:commitType:. | ||
#openDialogToMergeCommitIntoHead:mergeBase:displayName:. | ||
} gather: [:selector | #(commit merge amend) collect: [:symbol | GSBrowser>>selector -> symbol]] |
8 changes: 8 additions & 0 deletions
8
src/GitS-Tests.package/GSLintTest.class/instance/ignoredSendsForLegacyMetadataLoading.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 @@ | ||
ignored-sends | ||
ignoredSendsForLegacyMetadataLoading | ||
^ { | ||
#legacySquotClassMappings -> #(SquotTrackedObjectMetadata). | ||
#loadMapperFromLegacySquotContentsReference:fallbackSerializer: -> #(SquotTonelSerializer SquotCypressCodeSerializer). | ||
#loadLegacySerializerNameFromSquotContentsReference: -> #(serializer). | ||
#legacySquotClassName: -> #(GS Squot). | ||
} gather: [:each | each value collect: [:symbol | GSMetadataMapper>>each key -> symbol]] |
7 changes: 7 additions & 0 deletions
7
src/GitS-Tests.package/GSLintTest.class/instance/ignoredSendsForLegacyProjectImporting.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 @@ | ||
ignored-sends | ||
ignoredSendsForLegacyProjectImporting | ||
^ { | ||
#importLegacyGitStandaloneAssetLoaderInstances -> #(GitNamedAssetLoader assets). | ||
#importLegacySquotWorkingCopyInstances -> #(SquotWorkingCopy registered). | ||
#importLegacySqueakWorkingCopyInstances -> #(SqueakWorkingCopy). | ||
} gather: [:each | each value collect: [:symbol | GSBaseWorkingCopy class>>each key -> symbol]] |
4 changes: 4 additions & 0 deletions
4
src/GitS-Tests.package/GSLintTest.class/instance/ignoredSendsForTextDiffing.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 @@ | ||
ignored-sends | ||
ignoredSendsForTextDiffing | ||
^ #(diffChunksFrom:to: diffFromLines:toLines:) gather: [:selector | | ||
#(common different) collect: [:symbol | GSTextUtilities class>>selector -> symbol]] |
7 changes: 7 additions & 0 deletions
7
src/GitS-Tests.package/GSLintTest.class/instance/ignoredSendsForUnmappedPathDialogOptions.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 @@ | ||
ignored-sends | ||
ignoredSendsForUnmappedPathDialogOptions | ||
^ { | ||
GSBaseWorkingCopy>>#requestOptionForUnmappedPath:mapper:additionalOptions:. | ||
GSBaseWorkingCopy>>#getUnmappedPathFrom:withTitle:additionalOptions:optionIfMapped:. | ||
GSAssetBrowser>>#importDirectory:. | ||
} gather: [:compiledMethod | #(different overwrite skip ask) collect: [:symbol | compiledMethod -> symbol]] |
5 changes: 5 additions & 0 deletions
5
src/GitS-Tests.package/GSLintTest.class/instance/isAbstractMethod..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 @@ | ||
testing | ||
isAbstractMethod: aCompiledMethod | ||
self sendsOf: aCompiledMethod do: [:selector | | ||
selector = #subclassResponsibility ifTrue: [^ true]]. | ||
^ false |
10 changes: 10 additions & 0 deletions
10
src/GitS-Tests.package/GSLintTest.class/instance/isSend.in.enumerator..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 @@ | ||
testing | ||
isSend: aSymbol in: aCompiledMethod enumerator: aSendsEnumerator | ||
| parent | | ||
({self. self class} includes: aCompiledMethod methodClass) ifTrue: [^ false]. | ||
(self ignoredSends includes: aCompiledMethod -> aSymbol) ifTrue: [^ false]. | ||
parent := aSendsEnumerator parent ifNil: [^ true]. | ||
parent isMessageNode ifFalse: [^ true]. | ||
(parent arguments includes: aSendsEnumerator current) ifFalse: [^ true]. | ||
(self selectorsWhoseArgumentsToIgnore includes: parent selector key) ifTrue: [^ false]. | ||
^ true |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSLintTest.class/instance/packageInfo.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 @@ | ||
accessing | ||
packageInfo | ||
^ PackageInfo named: 'GitS-Core' |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSLintTest.class/instance/selectorsWhoseArgumentsToIgnore.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 @@ | ||
ignored-sends | ||
selectorsWhoseArgumentsToIgnore | ||
^ #(flag: = ~= changed: hResizing: horizontalResizing: vResizing: verticalResizing: listDirection:) |
12 changes: 12 additions & 0 deletions
12
src/GitS-Tests.package/GSLintTest.class/instance/sendsOf.do..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,12 @@ | ||
finding | ||
sendsOf: aCompiledMethod do: aBlock | ||
GSSendsEnumerator new | ||
selectBlock: [:symbol :enumerator | | ||
self | ||
isSend: symbol | ||
in: aCompiledMethod | ||
enumerator: enumerator]; | ||
doBlock: aBlock; | ||
visit: (Parser new | ||
parse: aCompiledMethod getSource | ||
class: aCompiledMethod methodClass). |
7 changes: 7 additions & 0 deletions
7
src/GitS-Tests.package/GSLintTest.class/instance/testNoAbstractMethodsInConcreteClasses.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 @@ | ||
tests | ||
testNoAbstractMethodsInConcreteClasses | ||
| found | | ||
found := self findAbstractMethodsInConcreteClasses. | ||
self | ||
assert: found isEmpty | ||
description: 'Found methods on non-abstract classes that call subclassResponsibility'. |
10 changes: 10 additions & 0 deletions
10
src/GitS-Tests.package/GSLintTest.class/instance/testNoUnimplementedAndNoUnsentMethods.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 @@ | ||
tests | ||
testNoUnimplementedAndNoUnsentMethods | ||
| found | | ||
found := self findUnimplementedAndUnsentMethods. | ||
self | ||
assert: (found at: 'unimplemented') isEmpty | ||
description: 'Found unimplemented selectors or references to non-existing globals'. | ||
self | ||
assert: (found at: 'unsent') asIdentitySet = self expectedUnsentMethods asIdentitySet | ||
description: 'Found unsent methods'. |
25 changes: 25 additions & 0 deletions
25
src/GitS-Tests.package/GSLintTest.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,25 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"defaultTimeout" : "mad 10/14/2024 00:00", | ||
"expectedUnsentGitAssetLoaderMethods" : "mad 10/13/2024 23:47", | ||
"expectedUnsentMethods" : "mad 10/14/2024 00:04", | ||
"expectedUnsentMethodsForFutureUse" : "mad 10/14/2024 00:05", | ||
"expectedUnsentMethodsThatHaveHiddenSends" : "mad 10/14/2024 00:10", | ||
"findAbstractMethodsInConcreteClasses" : "mad 10/14/2024 00:05", | ||
"findUnimplementedAndUnsentMethods" : "mad 10/14/2024 00:03", | ||
"ignoredAbstractMethods" : "mad 10/14/2024 00:05", | ||
"ignoredSends" : "mad 10/14/2024 00:07", | ||
"ignoredSendsForCommitType" : "mad 10/14/2024 00:06", | ||
"ignoredSendsForLegacyMetadataLoading" : "mad 10/14/2024 00:06", | ||
"ignoredSendsForLegacyProjectImporting" : "mad 10/14/2024 00:06", | ||
"ignoredSendsForTextDiffing" : "mad 10/14/2024 00:07", | ||
"ignoredSendsForUnmappedPathDialogOptions" : "mad 10/14/2024 00:07", | ||
"isAbstractMethod:" : "mad 10/13/2024 20:42", | ||
"isSend:in:enumerator:" : "mad 10/14/2024 00:06", | ||
"packageInfo" : "mad 10/13/2024 19:52", | ||
"selectorsWhoseArgumentsToIgnore" : "mad 10/14/2024 00:08", | ||
"sendsOf:do:" : "mad 10/13/2024 19:50", | ||
"testNoAbstractMethodsInConcreteClasses" : "mad 10/13/2024 21:13", | ||
"testNoUnimplementedAndNoUnsentMethods" : "mad 10/14/2024 00:04" } } |
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 @@ | ||
{ | ||
"category" : "GitS-Tests", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "GSLintTest", | ||
"pools" : [ | ||
], | ||
"super" : "TestCase", | ||
"type" : "normal" } |
Empty file.
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/ancestor..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 @@ | ||
accessing | ||
ancestor: aNumber | ||
^ self ancestors atLast: aNumber ifAbsent: [nil] |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/ancestors..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 @@ | ||
accessing | ||
ancestors: aColletion | ||
ancestors := aColletion |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/ancestors.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 @@ | ||
accessing | ||
ancestors | ||
^ ancestors |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/current.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 @@ | ||
accessing | ||
current | ||
^ self ancestor: 1 |
4 changes: 4 additions & 0 deletions
4
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/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,4 @@ | ||
initialize-release | ||
initialize | ||
super initialize. | ||
self ancestors: OrderedCollection new. |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/parent.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 @@ | ||
accessing | ||
parent | ||
^ self ancestor: 2 |
4 changes: 4 additions & 0 deletions
4
...GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/pushAncestor.during..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 @@ | ||
visiting | ||
pushAncestor: aParseNode during: aBlock | ||
self ancestors addLast: aParseNode. | ||
aBlock ensure: [self ancestors removeLast]. |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/root.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 @@ | ||
accessing | ||
root | ||
^ self ancestors first |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/visit..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 @@ | ||
visiting | ||
visit: aParseNode | ||
self pushAncestor: aParseNode during: [aParseNode accept: self]. |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/visitAll..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 @@ | ||
visiting | ||
visitAll: aCollection | ||
aCollection do: [:each | self visit: each]. |
6 changes: 6 additions & 0 deletions
6
...GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/visitAssignmentNode..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 @@ | ||
visiting | ||
visitAssignmentNode: anAssignmentNode | ||
"N.B. since assigment happens after the value is evaluated the value is visited first." | ||
self | ||
visit: anAssignmentNode value; | ||
visit: anAssignmentNode variable. |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
visiting | ||
visitBlockNode: aBlockNode | ||
self visitAll: aBlockNode statements. |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/visitBraceNode..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 @@ | ||
visiting | ||
visitBraceNode: aBraceNode | ||
self visitAll: aBraceNode elements. |
7 changes: 7 additions & 0 deletions
7
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/visitCascadeNode..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 @@ | ||
visiting | ||
visitCascadeNode: aCascadeNode | ||
self visit: aCascadeNode receiver. | ||
aCascadeNode messages do: [:message| | ||
self | ||
pushAncestor: message | ||
during: [self visitMessageNodeInCascade: message]]. |
5 changes: 5 additions & 0 deletions
5
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/visitFutureNode..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 @@ | ||
visiting | ||
visitFutureNode: aFutureNode | ||
self visit: aFutureNode receiver. | ||
(aFutureNode originalSelector isKindOf: SelectorNode) ifTrue: | ||
[self visit: aFutureNode originalSelector]. |
6 changes: 6 additions & 0 deletions
6
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/visitMessageNode..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 @@ | ||
visiting | ||
visitMessageNode: aMessageNode | ||
self | ||
visit: aMessageNode receiver; | ||
visit: aMessageNode selector; | ||
visitAll: aMessageNode argumentsInEvaluationOrder. |
6 changes: 6 additions & 0 deletions
6
...ests.package/GSParseNodeVisitorWithAncestors.class/instance/visitMessageNodeInCascade..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 @@ | ||
visiting | ||
visitMessageNodeInCascade: aMessageNode | ||
"receiver is nil for cascades" | ||
self | ||
visit: aMessageNode selector; | ||
visitAll: aMessageNode argumentsInEvaluationOrder. |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
visiting | ||
visitMethodNode: aMethodNode | ||
self visit: aMethodNode block. |
3 changes: 3 additions & 0 deletions
3
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.class/instance/visitReturnNode..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 @@ | ||
visiting | ||
visitReturnNode: aReturnNode | ||
self visit: aReturnNode expr. |
23 changes: 23 additions & 0 deletions
23
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.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,23 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"ancestor:" : "mad 10/13/2024 16:02", | ||
"ancestors" : "mad 10/13/2024 15:27", | ||
"ancestors:" : "mad 10/13/2024 15:27", | ||
"current" : "mad 10/13/2024 16:02", | ||
"initialize" : "mad 10/13/2024 15:28", | ||
"parent" : "mad 10/13/2024 16:02", | ||
"pushAncestor:during:" : "mad 10/13/2024 15:28", | ||
"root" : "mad 10/13/2024 16:08", | ||
"visit:" : "mad 10/13/2024 15:28", | ||
"visitAll:" : "mad 10/13/2024 15:19", | ||
"visitAssignmentNode:" : "mad 10/13/2024 15:16", | ||
"visitBlockNode:" : "mad 10/13/2024 15:17", | ||
"visitBraceNode:" : "mad 10/13/2024 15:19", | ||
"visitCascadeNode:" : "mad 10/13/2024 15:40", | ||
"visitFutureNode:" : "mad 10/13/2024 15:40", | ||
"visitMessageNode:" : "mad 10/13/2024 15:23", | ||
"visitMessageNodeInCascade:" : "mad 10/13/2024 15:23", | ||
"visitMethodNode:" : "mad 10/13/2024 15:23", | ||
"visitReturnNode:" : "mad 10/13/2024 15:23" } } |
14 changes: 14 additions & 0 deletions
14
src/GitS-Tests.package/GSParseNodeVisitorWithAncestors.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "GitS-Tests", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"ancestors" ], | ||
"name" : "GSParseNodeVisitorWithAncestors", | ||
"pools" : [ | ||
], | ||
"super" : "ParseNodeVisitor", | ||
"type" : "normal" } |
Empty file.
Oops, something went wrong.