MCPcopy Create free account
hub / github.com/llir/llvm / Type

Method Type

ir/constant/expr_binary.go:43–49  ·  view source on GitHub ↗

Type returns the type of the constant expression.

()

Source from the content-addressed store, hash-verified

41
42// Type returns the type of the constant expression.
43func (e *ExprAdd) Type() types.Type {
44 // Cache type if not present.
45 if e.Typ == nil {
46 e.Typ = e.X.Type()
47 }
48 return e.Typ
49}
50
51// Ident returns the identifier associated with the constant expression.
52func (e *ExprAdd) Ident() string {

Callers 2

NewAddFunction · 0.95
StringMethod · 0.95

Calls 1

TypeMethod · 0.65

Tested by

no test coverage detected