Skip to content

Baseline references - handle API variants, symbols and strings - #11

Open
seandenigris wants to merge 1 commit into
feenkcom:mainfrom
seandenigris:bug-_seandenigris_baseline-refs-missing
Open

Baseline references - handle API variants, symbols and strings#11
seandenigris wants to merge 1 commit into
feenkcom:mainfrom
seandenigris:bug-_seandenigris_baseline-refs-missing

Conversation

@seandenigris

Copy link
Copy Markdown

BaselineOf references view currently misses references that use symbols vs. strings, as well as those that use API variants other than baseline:with:.

Originally implemented more simply as 4 gtASTMatches or-ed together as below, but that was way too slow for results to appear in the UI:

self gtReferences
	| (('`@receiver baseline: ', aName) gtASTMatches)
	| (('`@receiver baseline: ', aName asSymbol) gtASTMatches)
	| (('`@receiver baseline: ', aName, ' with: `@arg') gtASTMatches)
	| (('`@receiver baseline: ', aName asSymbol, ' with: `@arg') gtASTMatches)

BaselineOf references view currently misses references that use symbols vs. strings, as well as those that use API variants other than `baseline:with:`.

Originally implemented more simply as 4 gtReferences or-ed together as below, but that was way too slow:
```smalltalk
self gtReferences
	| (('`@receiver baseline: ', aName) gtASTMatches)
	| (('`@receiver baseline: ', aName asSymbol) gtASTMatches)
	| (('`@receiver baseline: ', aName, ' with: `@arg') gtASTMatches)
	| (('`@receiver baseline: ', aName asSymbol, ' with: `@arg') gtASTMatches)
```
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

Successfully merging this pull request may close these issues.

1 participant