#include <token_position.h>
Definition at line 62 of file token_position.h.
◆ CompareForSorting()
◆ DecodeCoveragePosition()
TokenPosition dart::TokenPosition::DecodeCoveragePosition |
( |
intptr_t |
encoded_position, |
|
|
bool * |
is_branch_coverage |
|
) |
| |
|
static |
Definition at line 31 of file token_position.cc.
32 {
33 *is_branch_coverage = ((encoded_position % 2) == 1);
34 return TokenPosition(encoded_position / 2);
35}
◆ Deserialize()
◆ EncodeCoveragePosition()
intptr_t dart::TokenPosition::EncodeCoveragePosition |
( |
bool |
is_branch_coverage | ) |
|
Definition at line 24 of file token_position.cc.
24 {
25
26
27 intptr_t encoded_position = 2 * static_cast<intptr_t>(value_);
28 return is_branch_coverage ? encoded_position + 1 : encoded_position;
29}
◆ Hash()
uword dart::TokenPosition::Hash |
( |
| ) |
const |
Definition at line 12 of file token_position.cc.
12 {
14}
static uint32_t WordHash(intptr_t key)
◆ IsClassifying()
bool dart::TokenPosition::IsClassifying |
( |
| ) |
const |
|
inline |
Definition at line 181 of file token_position.h.
181 {
182 return (value_ >= kBox.value()) && (value_ <=
kLast.value());
183 }
◆ IsDebugPause()
bool dart::TokenPosition::IsDebugPause |
( |
| ) |
const |
|
inline |
◆ IsNoSource()
bool dart::TokenPosition::IsNoSource |
( |
| ) |
const |
|
inline |
◆ IsReal()
bool dart::TokenPosition::IsReal |
( |
| ) |
const |
|
inline |
◆ IsSynthetic()
bool dart::TokenPosition::IsSynthetic |
( |
| ) |
const |
|
inline |
◆ IsWithin()
Definition at line 99 of file token_position.h.
99 {
100 if (
IsReal())
return (
a.value() <= value()) && (value() <=
b.value());
102 return false;
103 }
◆ Max()
Definition at line 115 of file token_position.h.
116 {
117 if (!
b.IsReal())
return a;
118 if (!
a.IsReal())
return b;
119 return b.value() >
a.value() ?
b :
a;
120 }
◆ Min()
Definition at line 107 of file token_position.h.
108 {
109 if (!
b.IsReal())
return a;
110 if (!
a.IsReal())
return b;
111 return b.value() <
a.value() ?
b :
a;
112 }
◆ Next()
Definition at line 167 of file token_position.h.
167 {
169 return TokenPosition(value_ + 1);
170 }
◆ operator!=()
bool dart::TokenPosition::operator!= |
( |
const TokenPosition & |
b | ) |
const |
|
inline |
◆ operator<()
bool dart::TokenPosition::operator< |
( |
const TokenPosition & |
b | ) |
const |
|
inline |
◆ operator<=()
bool dart::TokenPosition::operator<= |
( |
const TokenPosition & |
b | ) |
const |
|
inline |
◆ operator==()
bool dart::TokenPosition::operator== |
( |
const TokenPosition & |
b | ) |
const |
|
inline |
◆ operator>()
bool dart::TokenPosition::operator> |
( |
const TokenPosition & |
b | ) |
const |
|
inline |
◆ operator>=()
bool dart::TokenPosition::operator>= |
( |
const TokenPosition & |
b | ) |
const |
|
inline |
◆ Pos()
intptr_t dart::TokenPosition::Pos |
( |
| ) |
const |
|
inline |
◆ SENTINEL_TOKEN_DESCRIPTORS()
◆ Serialize()
int32_t dart::TokenPosition::Serialize |
( |
| ) |
const |
Definition at line 20 of file token_position.cc.
20 {
21 return static_cast<int32_t>(value_);
22}
◆ Synthetic()
static TokenPosition dart::TokenPosition::Synthetic |
( |
intptr_t |
value | ) |
|
|
inlinestatic |
Definition at line 200 of file token_position.h.
200 {
202 return TokenPosition((kLastPos - 1) - value);
203 }
static constexpr int32_t kMaxSourcePos
◆ ToCString()
const char * dart::TokenPosition::ToCString |
( |
| ) |
const |
Definition at line 44 of file token_position.cc.
44 {
45 switch (value_) {
46#define DEFINE_CASE(name, value) \
47 case value: \
48 return #name;
50#undef DEFINE_CASE
51 default:
52 break;
53 }
58 }
61}
static Thread * Current()
SENTINEL_TOKEN_DESCRIPTORS(DECLARE_VALUES)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
#define DEFINE_CASE(name, value)
◆ kMaxSentinelDescriptors
constexpr int32_t dart::TokenPosition::kMaxSentinelDescriptors = 64 |
|
staticconstexpr |
◆ kMaxSource
◆ kMaxSourcePos
constexpr int32_t dart::TokenPosition::kMaxSourcePos |
|
staticconstexpr |
Initial value:=
static constexpr int32_t kMaxSentinelDescriptors
Definition at line 156 of file token_position.h.
◆ kMinSource
◆ kMinSourcePos
constexpr int32_t dart::TokenPosition::kMinSourcePos = 0 |
|
staticconstexpr |
The documentation for this class was generated from the following files: