Skip to content

Refactor all Test with dependencies to OrbeonTemplate class methods #1163

Description

@brunobuzzi

See brunobuzzi/OrbeonPersistenceLayer#407
Rewrite tool example:
AST pattern matching:

`msg
	^self formCreatorClass createFormInstance: `#formInstance definitionNamed: `#defName app: `#appName definitionMethod: `#formDefinition in: `arg

AST replacing Pattern:

`msg
	^self formCreatorClass 
		createFormInstance: `{RBMessageNode receiver: (RBMessageNode receiver: (RBVariableNode named: 'self') selector: #newInstanceTemplate) selector: (RBVariableNode identifierToken: `#formInstance) name} 
		definitionNamed: `#defName 
		app: `#appName 
		definitionMethod: `{RBMessageNode receiver: (RBMessageNode receiver: (RBVariableNode named: 'self') selector: #newDefinitionTemplate) selector: (RBVariableNode identifierToken: `#formDefinition) name} 
		in: `arg

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions