webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | List of all members
JSC::ParserError Class Reference

#include <ParserError.h>

Public Types

enum  SyntaxErrorType {
  SyntaxErrorNone, SyntaxErrorIrrecoverable, SyntaxErrorUnterminatedLiteral, SyntaxErrorRecoverable,
  SyntaxErrorNone, SyntaxErrorIrrecoverable, SyntaxErrorUnterminatedLiteral, SyntaxErrorRecoverable
}
 
enum  ErrorType {
  ErrorNone, StackOverflow, EvalError, OutOfMemory,
  SyntaxError, ErrorNone, StackOverflow, EvalError,
  OutOfMemory, SyntaxError
}
 
enum  SyntaxErrorType {
  SyntaxErrorNone, SyntaxErrorIrrecoverable, SyntaxErrorUnterminatedLiteral, SyntaxErrorRecoverable,
  SyntaxErrorNone, SyntaxErrorIrrecoverable, SyntaxErrorUnterminatedLiteral, SyntaxErrorRecoverable
}
 
enum  ErrorType {
  ErrorNone, StackOverflow, EvalError, OutOfMemory,
  SyntaxError, ErrorNone, StackOverflow, EvalError,
  OutOfMemory, SyntaxError
}
 

Public Member Functions

 ParserError ()
 
 ParserError (ErrorType type)
 
 ParserError (ErrorType type, SyntaxErrorType syntaxError, JSToken token)
 
 ParserError (ErrorType type, SyntaxErrorType syntaxError, JSToken token, const String &msg, int line)
 
bool isValid () const
 
SyntaxErrorType syntaxErrorType () const
 
const JSTokentoken () const
 
const Stringmessage () const
 
int line () const
 
JSObjecttoErrorObject (JSGlobalObject *globalObject, const SourceCode &source, int overrideLineNumber=-1)
 
 ParserError ()
 
 ParserError (ErrorType type)
 
 ParserError (ErrorType type, SyntaxErrorType syntaxError, JSToken token)
 
 ParserError (ErrorType type, SyntaxErrorType syntaxError, JSToken token, const String &msg, int line)
 
bool isValid () const
 
SyntaxErrorType syntaxErrorType () const
 
const JSTokentoken () const
 
const Stringmessage () const
 
int line () const
 
JSObjecttoErrorObject (JSGlobalObject *globalObject, const SourceCode &source, int overrideLineNumber=-1)
 

Member Enumeration Documentation

◆ ErrorType [1/2]

Enumerator
ErrorNone 
StackOverflow 
EvalError 
OutOfMemory 
SyntaxError 
ErrorNone 
StackOverflow 
EvalError 
OutOfMemory 
SyntaxError 

◆ ErrorType [2/2]

Enumerator
ErrorNone 
StackOverflow 
EvalError 
OutOfMemory 
SyntaxError 
ErrorNone 
StackOverflow 
EvalError 
OutOfMemory 
SyntaxError 

◆ SyntaxErrorType [1/2]

Enumerator
SyntaxErrorNone 
SyntaxErrorIrrecoverable 
SyntaxErrorUnterminatedLiteral 
SyntaxErrorRecoverable 
SyntaxErrorNone 
SyntaxErrorIrrecoverable 
SyntaxErrorUnterminatedLiteral 
SyntaxErrorRecoverable 

◆ SyntaxErrorType [2/2]

Enumerator
SyntaxErrorNone 
SyntaxErrorIrrecoverable 
SyntaxErrorUnterminatedLiteral 
SyntaxErrorRecoverable 
SyntaxErrorNone 
SyntaxErrorIrrecoverable 
SyntaxErrorUnterminatedLiteral 
SyntaxErrorRecoverable 

Constructor & Destructor Documentation

◆ ParserError() [1/8]

JSC::ParserError::ParserError ( )
inline

◆ ParserError() [2/8]

JSC::ParserError::ParserError ( ErrorType  type)
inlineexplicit

◆ ParserError() [3/8]

JSC::ParserError::ParserError ( ErrorType  type,
SyntaxErrorType  syntaxError,
JSToken  token 
)
inline

◆ ParserError() [4/8]

JSC::ParserError::ParserError ( ErrorType  type,
SyntaxErrorType  syntaxError,
JSToken  token,
const String msg,
int  line 
)
inline

◆ ParserError() [5/8]

JSC::ParserError::ParserError ( )
inline

◆ ParserError() [6/8]

JSC::ParserError::ParserError ( ErrorType  type)
inlineexplicit

◆ ParserError() [7/8]

JSC::ParserError::ParserError ( ErrorType  type,
SyntaxErrorType  syntaxError,
JSToken  token 
)
inline

◆ ParserError() [8/8]

JSC::ParserError::ParserError ( ErrorType  type,
SyntaxErrorType  syntaxError,
JSToken  token,
const String msg,
int  line 
)
inline

Member Function Documentation

◆ isValid() [1/2]

bool JSC::ParserError::isValid ( ) const
inline

◆ isValid() [2/2]

bool JSC::ParserError::isValid ( ) const
inline

◆ line() [1/2]

int JSC::ParserError::line ( ) const
inline

◆ line() [2/2]

int JSC::ParserError::line ( ) const
inline

◆ message() [1/2]

const String& JSC::ParserError::message ( ) const
inline

◆ message() [2/2]

const String& JSC::ParserError::message ( ) const
inline

◆ syntaxErrorType() [1/2]

SyntaxErrorType JSC::ParserError::syntaxErrorType ( ) const
inline

◆ syntaxErrorType() [2/2]

SyntaxErrorType JSC::ParserError::syntaxErrorType ( ) const
inline

◆ toErrorObject() [1/2]

JSObject* JSC::ParserError::toErrorObject ( JSGlobalObject globalObject,
const SourceCode source,
int  overrideLineNumber = -1 
)
inline

◆ toErrorObject() [2/2]

JSObject* JSC::ParserError::toErrorObject ( JSGlobalObject globalObject,
const SourceCode source,
int  overrideLineNumber = -1 
)
inline

◆ token() [1/2]

const JSToken& JSC::ParserError::token ( ) const
inline

◆ token() [2/2]

const JSToken& JSC::ParserError::token ( ) const
inline

The documentation for this class was generated from the following file: