Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file library
meta-object-protocol
compile: aString into: aClass classified: aSymbol
"The trick here is to be as silently a possible so that the package is not marked dirty when running WAFileLibrary test.
This also makes running tests much faster."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
file library
meta-object-protocol
removeSelector: aSymbol from: aClass
self subclassResponsibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
meta-object-protocol
sourceCodeStringOf: aCompiledMethod
"Return a String with the source code for a compiled method."

self subclassResponsibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
meta-object-protocol
sourceCodeStringOf: aCompiledMethod
"Return a String with the source code for a compiled method."

^ self convertToSmalltalkNewlines: aCompiledMethod _sourceString
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
meta-object-protocol
sourceCodeStringOf: aCompiledMethod
"Return a String with the source code for a compiled method."

^ self convertToSmalltalkNewlines: aCompiledMethod sourceCode
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
meta-object-protocol
sourceCodeStringOf: aCompiledMethod
"Return a String with the source code for a compiled method."

^ self convertToSmalltalkNewlines: aCompiledMethod sourceCode
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
meta-object-protocol
sourceCodeStringOf: aCompiledMethod
"Return a String with the source code for a compiled method."

^ self convertToSmalltalkNewlines: aCompiledMethod sourceCode
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
meta-object-protocol
sourceCodeStringOf: aCompiledMethod
"Return a String with the source code for a compiled method."

^ self convertToSmalltalkNewlines: aCompiledMethod getSourceFromFile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tests-file library
tests-mop
testCompileAsciiString
| selector expected source |

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tests-file library
tests-mop
testCompileUnicodeString
| selector expected source |
selector := #stringMethod.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tests-mop
testSourceCodeStringOf

| sourceCodeString |
sourceCodeString := GRPlatform current sourceCodeStringOf: GRPlatform >> #sourceCodeStringOf:.
self
assert: sourceCodeString
equals: 'sourceCodeStringOf: aCompiledMethod
"Return a String with the source code for a compiled method."
self subclassResponsibility'
Loading