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

Public Types

typedef const CodeSourceMapKey
 
typedef const CodeSourceMapValue
 
typedef const CodeSourceMapPair
 

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 997 of file program_visitor.cc.

Member Typedef Documentation

◆ Key

Definition at line 1000 of file program_visitor.cc.

◆ Pair

Definition at line 1002 of file program_visitor.cc.

◆ Value

Definition at line 1001 of file program_visitor.cc.

Member Function Documentation

◆ Hash()

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

Definition at line 1008 of file program_visitor.cc.

1008 {
1009 ASSERT(!key->IsNull());
1010 return Utils::WordHash(key->Hash());
1011 }
static uint32_t WordHash(intptr_t key)
Definition: utils.cc:217
#define ASSERT(E)

◆ IsKeyEqual()

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

Definition at line 1013 of file program_visitor.cc.

1013 {
1014 ASSERT(!pair->IsNull() && !key->IsNull());
1015 return pair->Equals(*key);
1016 }

◆ KeyOf()

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

Definition at line 1004 of file program_visitor.cc.

1004{ return kv; }

◆ ValueOf()

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

Definition at line 1006 of file program_visitor.cc.

1006{ return kv; }

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