Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor all Test with dependencies to OrbeonTemplate class methods #1163

Open
brunobuzzi opened this issue Apr 7, 2021 · 0 comments
Open

Comments

@brunobuzzi
Copy link
Owner

brunobuzzi commented Apr 7, 2021

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
brunobuzzi added a commit that referenced this issue Apr 21, 2021
brunobuzzi added a commit that referenced this issue Apr 21, 2021
brunobuzzi added a commit that referenced this issue Apr 21, 2021
brunobuzzi added a commit that referenced this issue Apr 21, 2021
brunobuzzi added a commit that referenced this issue Apr 21, 2021
brunobuzzi added a commit that referenced this issue Apr 21, 2021
brunobuzzi added a commit that referenced this issue Apr 21, 2021
brunobuzzi added a commit that referenced this issue Apr 21, 2021
brunobuzzi added a commit that referenced this issue Apr 21, 2021
brunobuzzi added a commit that referenced this issue Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant