Flutter Engine
The Flutter Engine
Public Types | Static Public Member Functions | List of all members
dart::FieldKeyValueTrait Class Reference

#include <parser.h>

Public Types

typedef const FieldKey
 
typedef const FieldValue
 
typedef const FieldPair
 

Static Public Member Functions

static Key KeyOf (Pair kv)
 
static Value ValueOf (Pair kv)
 
static uword Hash (Key key)
 
static bool IsKeyEqual (Pair pair, Key key)
 

Detailed Description

Definition at line 42 of file parser.h.

Member Typedef Documentation

◆ Key

Definition at line 45 of file parser.h.

◆ Pair

Definition at line 47 of file parser.h.

◆ Value

Definition at line 46 of file parser.h.

Member Function Documentation

◆ Hash()

static uword dart::FieldKeyValueTrait::Hash ( Key  key)
inlinestatic

Definition at line 53 of file parser.h.

53 {
54 const TokenPosition token_pos = key->token_pos();
55 if (token_pos.IsReal()) {
56 return token_pos.Hash();
57 }
58 return key->kernel_offset();
59 }

◆ IsKeyEqual()

static bool dart::FieldKeyValueTrait::IsKeyEqual ( Pair  pair,
Key  key 
)
inlinestatic

Definition at line 61 of file parser.h.

61 {
62 return pair->Original() == key->Original();
63 }

◆ KeyOf()

static Key dart::FieldKeyValueTrait::KeyOf ( Pair  kv)
inlinestatic

Definition at line 49 of file parser.h.

49{ return kv; }

◆ ValueOf()

static Value dart::FieldKeyValueTrait::ValueOf ( Pair  kv)
inlinestatic

Definition at line 51 of file parser.h.

51{ return kv; }

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