v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::SourceRange Struct Reference

#include <ast-source-ranges.h>

Collaboration diagram for v8::internal::SourceRange:

Public Member Functions

 SourceRange ()
 
 SourceRange (int start, int end)
 
bool IsEmpty () const
 

Static Public Member Functions

static SourceRange Empty ()
 
static SourceRange OpenEnded (int32_t start)
 
static SourceRange ContinuationOf (const SourceRange &that, int end=kNoSourcePosition)
 
static SourceRange FunctionLiteralMarkerRange ()
 

Public Attributes

int32_t start
 
int32_t end
 

Static Public Attributes

static constexpr int kFunctionLiteralSourcePosition = -2
 

Detailed Description

Definition at line 16 of file ast-source-ranges.h.

Constructor & Destructor Documentation

◆ SourceRange() [1/2]

v8::internal::SourceRange::SourceRange ( )
inline

Definition at line 17 of file ast-source-ranges.h.

Here is the caller graph for this function:

◆ SourceRange() [2/2]

v8::internal::SourceRange::SourceRange ( int start,
int end )
inline

Definition at line 18 of file ast-source-ranges.h.

Member Function Documentation

◆ ContinuationOf()

static SourceRange v8::internal::SourceRange::ContinuationOf ( const SourceRange & that,
int end = kNoSourcePosition )
inlinestatic

Definition at line 24 of file ast-source-ranges.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Empty()

static SourceRange v8::internal::SourceRange::Empty ( )
inlinestatic

Definition at line 20 of file ast-source-ranges.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FunctionLiteralMarkerRange()

static SourceRange v8::internal::SourceRange::FunctionLiteralMarkerRange ( )
inlinestatic

Definition at line 36 of file ast-source-ranges.h.

Here is the caller graph for this function:

◆ IsEmpty()

bool v8::internal::SourceRange::IsEmpty ( ) const
inline

Definition at line 19 of file ast-source-ranges.h.

Here is the caller graph for this function:

◆ OpenEnded()

static SourceRange v8::internal::SourceRange::OpenEnded ( int32_t start)
inlinestatic

Definition at line 21 of file ast-source-ranges.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ end

int32_t v8::internal::SourceRange::end

Definition at line 40 of file ast-source-ranges.h.

◆ kFunctionLiteralSourcePosition

int v8::internal::SourceRange::kFunctionLiteralSourcePosition = -2
staticconstexpr

Definition at line 29 of file ast-source-ranges.h.

◆ start

int32_t v8::internal::SourceRange::start

Definition at line 40 of file ast-source-ranges.h.


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