Documentation ¶
Index ¶
- func CastExpr(p *program.Program, expr ast.Expr, fromType, toType string) (ast.Expr, error)
- func GetArrayTypeAndSize(s string) (string, int)
- func GetDereferenceType(cType string) (string, error)
- func IsNullExpr(n goast.Expr) bool
- func ResolveType(p *program.Program, s string) (string, error)
- func ResolveTypeForBinaryOperator(p *program.Program, operator, leftType, rightType string) string
- func SizeOf(p *program.Program, cType string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArrayTypeAndSize ¶ added in v0.11.0
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 IsNullExpr ¶ added in v0.10.0
func ResolveTypeForBinaryOperator ¶ added in v0.9.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.