Class: FFIDB::Exporters::Dart

Inherits:
FFIDB::Exporter show all
Defined in:
lib/ffidb/exporters/dart.rb

Overview

Code generator for the Dart programming language.

Constant Summary collapse

TYPE_MAP =
'dart.yaml'
TYPE_MAP_DART =
{
  'Void'          => :void,
  'Int8'          => :int,
  'Int16'         => :int,
  'Int32'         => :int,
  'Int64'         => :int,
  'Uint8'         => :int,
  'Uint16'        => :int,
  'Uint32'        => :int,
  'Uint64'        => :int,
  'Float'         => :double,
  'Double'        => :double,
  'IntPtr'        => :int,
  'Pointer<Int8>' => 'Pointer<Int8>',
  'Pointer<Void>' => 'Pointer<Void>',
}

Instance Attribute Summary

Attributes inherited from FFIDB::Exporter

#options

Instance Method Summary collapse

Methods inherited from FFIDB::Exporter

#begin, #begin_library, #close, #debug?, #dlopen_paths_for, #emit, #export_enum, #export_function, #export_header, #export_struct, #export_symbol, #export_typedef, #export_union, #finish_library, for, #header?, #initialize, #verbose?

Constructor Details

This class inherits a constructor from FFIDB::Exporter

Instance Method Details

#finishObject



33
34
35
# File 'lib/ffidb/exporters/dart.rb', line 33

def finish
  puts self.render_template('dart.erb')
end