Skip to content

Commit

Permalink
remove testExampleSelf change (will be done by other PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDenker committed Jul 21, 2020
1 parent 999938b commit 4c5363b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/OpalCompiler-Tests/OCASTCheckerTest.class.st
Expand Up @@ -66,15 +66,14 @@ OCASTCheckerTest >> testExamplePrimitiveErrorCode [
{ #category : #'testing - variables' }
OCASTCheckerTest >> testExampleSelf [
| ast assignment |
ast := (OCOpalExamples >> #exampleSelf) parseTree.
ast := (OCOpalExamples>>#exampleSelf) parseTree.
self nameAnalysisNoClosureIn: OCOpalExamples for: ast.
self assert: ast scope isMethodScope.
self assert: ast scope tempVars size equals: 0.
self assert: (ast scope lookupVar: 'self') isSelfVariable.
assignment := RBParseTreeSearcher
treeMatching: 'self result: ``@anything'
in: ast.
self assert: assignment arguments first binding isSelfVariable

assignment := RBParseTreeSearcher treeMatching: 'self result: ``@anything' in: ast.
self assert: assignment arguments first binding isSelf.
]

{ #category : #'testing - variables' }
Expand Down

0 comments on commit 4c5363b

Please sign in to comment.