Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::TypeTestingStubNamer Class Reference

#include <type_testing_stubs.h>

Public Member Functions

 TypeTestingStubNamer ()
 
const char * StubNameForType (const AbstractType &type) const
 
void WriteStubNameForTypeTo (BaseTextBuffer *buffer, const AbstractType &type) const
 

Detailed Description

Definition at line 18 of file type_testing_stubs.h.

Constructor & Destructor Documentation

◆ TypeTestingStubNamer()

dart::TypeTestingStubNamer::TypeTestingStubNamer ( )

Definition at line 28 of file type_testing_stubs.cc.

29 : lib_(Library::Handle()),
30 klass_(Class::Handle()),
31 type_(AbstractType::Handle()),
32 string_(String::Handle()) {}
static Object & Handle()
Definition object.h:407

Member Function Documentation

◆ StubNameForType()

const char * dart::TypeTestingStubNamer::StubNameForType ( const AbstractType type) const

Definition at line 34 of file type_testing_stubs.cc.

35 {
36 ZoneTextBuffer buffer(Thread::Current()->zone());
38 return buffer.buffer();
39}
static Thread * Current()
Definition thread.h:361
void WriteStubNameForTypeTo(BaseTextBuffer *buffer, const AbstractType &type) const
static const uint8_t buffer[]

◆ WriteStubNameForTypeTo()

void dart::TypeTestingStubNamer::WriteStubNameForTypeTo ( BaseTextBuffer buffer,
const AbstractType type 
) const

Definition at line 41 of file type_testing_stubs.cc.

43 {
44 buffer->AddString("TypeTestingStub_");
45 StringifyTypeTo(buffer, type);
46}

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