JavaScriptSourceReader.st
author Claus Gittinger <cg@exept.de>
Fri, 21 Feb 2020 20:48:14 +0100
changeset 1231 b7d945ef967a
parent 816 273b1773c67d
permissions -rw-r--r--
#REFACTORING by exept class: JavaScriptParser changed: #forStatement class: JavaScriptParser class added: #forOfAllowed comment/format in: #forInAllowed

"
 COPYRIGHT (c) 2004 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
"{ Package: 'stx:libjavascript' }"

Object subclass:#JavaScriptSourceReader
	instanceVariableNames:'classBeingLoaded'
	classVariableNames:''
	poolDictionaries:''
	category:'Languages-JavaScript-Framework'
!

!JavaScriptSourceReader class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 2004 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
! !

!JavaScriptSourceReader class methodsFor:'fileIn'!

fileIn:aFilename
    ^ self new fileIn:aFilename
!

fileInStream:aStream
    ^ self new fileInStream:aStream
! !

!JavaScriptSourceReader methodsFor:'fileIn'!

fileIn:aFilename
    aFilename asFilename readingFileDo:[:s |
        self fileInStream:s.
    ].
!

fileInStream:aStream
    Parser undefinedVariableNotification ignoreIn:[
        ClassBuildWarning ignoreIn:[
            JavaScriptCompiler parseClassFile:aStream.
        ].
    ].
! !

!JavaScriptSourceReader class methodsFor:'documentation'!

version
    ^ '$Header$'
!

version_CVS
    ^ '$Header$'
! !