Skip to content

outerMostContext seems to be wrongly used #86

@MarcusDenker

Description

@MarcusDenker

Sindarin is the only user of #outerMostContext, a method that does not really seem to make sense... especially if one looks at the code that uses is:

SindarinDebugger>>#canStillExecute:

	rightContext == rightContext outerMostContext or: [
		rightContext method ast allChildren identityIncludes: aProgramNode ] ]
		whileFalse: [ rightContext := rightContext sender ].

So this check if the right context is the outerMostContext (defined by walking up the outerContext chain), but what it then does it to walk up the sender chain.

outerMostContext 
	^ self outerContext
		ifNil: [ self ]
		ifNotNil: [ self outerContext ]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions