ParseErrorNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 26 Jul 2011 00:32:44 +0200
changeset 2594 8226f4081f74
parent 2549 b4e6af2f403e
child 2853 fab783ff128b
permissions -rw-r--r--
- added acceptVisior: - nodes now keeps their parent

"
 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:libcomp' }"

ParseNode subclass:#ParseErrorNode
	instanceVariableNames:'errorString'
	classVariableNames:''
	poolDictionaries:''
	category:'System-Compiler-Support'
!

!ParseErrorNode 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.
"
! !

!ParseErrorNode class methodsFor:'instance creation'!

errorString:arg
    ^ self new errorString:arg
! !

!ParseErrorNode methodsFor:'accessing'!

errorString
    ^ errorString
!

errorString:something
    errorString := something.
!

lineNumber

    ^self objectAttributeAt: #lineNumber

    "Created: / 09-07-2011 / 22:30:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

lineNumber: anInteger

    self objectAttributeAt: #lineNumber put: anInteger

    "Created: / 09-07-2011 / 22:29:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!ParseErrorNode methodsFor:'queries'!

isErrorNode
    ^ true
! !

!ParseErrorNode methodsFor:'visiting'!

acceptVisitor:aVisitor 
    "Double dispatch back to the visitor, passing my type encoded in
     the selector (visitor pattern)"

    "stub code automatically generated - please change if required"

    ^ aVisitor visitParseErrorNode:self
! !

!ParseErrorNode class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libcomp/ParseErrorNode.st,v 1.5 2011-07-25 22:32:44 vrany Exp $'
!

version_CVS
    ^ '$Header: /cvs/stx/stx/libcomp/ParseErrorNode.st,v 1.5 2011-07-25 22:32:44 vrany Exp $'
! !