Skip to content

[ Refactoring ] Clean architecture of RBTemporaryToInstanceVariableRefactoring #18850

@Ducasse

Description

@Ducasse

Once #18821 is integrated we should fix the popup.
We should not get a pop up in the refactoring.

TemporaryToInstanceVariableRefactoring >> preconditionNoSubclassDefinesVar [

	^ RBCondition
		  withBlock: [ (class allSubclasses anySatisfy: [ :cls | cls definesInstanceVariable: temporaryVariableName asString ]) not ]
 		  errorString:
			  ('One or more subclasses of <1p> already defines an<n>instance variable with the same name. Proceed anyway?'
				   expandMacrosWith: class name)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions