types

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastExpr added in v0.10.0

func CastExpr(p *program.Program, expr ast.Expr, fromType, toType string) (ast.Expr, error)

func GetArrayTypeAndSize added in v0.11.0

func GetArrayTypeAndSize(s string) (string, int)

GetArrayTypeAndSize returns the size and type of a fixed array. If the type is not an array with a fixed size then the type return will be an empty string, and the size will be -1.

func GetDereferenceType added in v0.9.0

func GetDereferenceType(cType string) (string, error)

func IsNullExpr added in v0.10.0

func IsNullExpr(n goast.Expr) bool

func ResolveType

func ResolveType(p *program.Program, s string) (string, error)

func ResolveTypeForBinaryOperator added in v0.9.0

func ResolveTypeForBinaryOperator(p *program.Program, operator, leftType, rightType string) string

func SizeOf added in v0.11.1

func SizeOf(p *program.Program, cType string) (int, error)

SizeOf returns the number of bytes for a type. This the same as using the sizeof operator/function in C.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL