"
I am a transpiler that can be controlled to support the timing application/
"
Class {
	#name : #PjTimingTestTranspiler,
	#superclass : #PjDependentTranspiler,
	#instVars : [
		'delayDNU'
	],
	#category : #'PharoJsTiming-Timing'
}

{ #category : #accessing }
PjTimingTestTranspiler >> delayDNU [
	^delayDNU
]

{ #category : #accessing }
PjTimingTestTranspiler >> delayDNU: anObject [
	delayDNU := anObject
]

{ #category : #transpiling }
PjTimingTestTranspiler >> generateCodeStringFrom: jsAst [
	self delayDNU ifFalse: [self convertAllClasses: #() writeDnu: true].
	generator asString: jsAst on: self jsStream.

]

{ #category : #'initailize-release' }
PjTimingTestTranspiler >> initialize [
	super initialize.
	self delayDNU: false.
]

"
I am a transpiler that can be controlled to support the timing application/
"
Class {
	#name : #PjTimingTestTranspiler,
	#superclass : #PjDependentTranspiler,
	#instVars : [
		'delayDNU'
	],
	#category : #'PharoJsTiming-Timing'
}

{ #category : #accessing }
PjTimingTestTranspiler >> delayDNU [
	^delayDNU
]

{ #category : #accessing }
PjTimingTestTranspiler >> delayDNU: anObject [
	delayDNU := anObject
]

{ #category : #transpiling }
PjTimingTestTranspiler >> generateCodeStringFrom: jsAst [
	self delayDNU ifFalse: [
		self enableWriteDnuDuring: [self writeDnuList]].
	generator asString: jsAst on: self jsStream.

]

{ #category : #'initailize-release' }
PjTimingTestTranspiler >> initialize [
	super initialize.
	self delayDNU: false.
]

Clean up based on DNU registration IV support
Clean up based on DNU registration IV support
bouraqadi/PharoJS,bouraqadi/PharoJS,bouraqadi/PharoJS