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

Method Type

ir/constant/expr_binary.go:135–141  ·  view source on GitHub ↗

Type returns the type of the constant expression.

()

Source from the content-addressed store, hash-verified

133
134// Type returns the type of the constant expression.
135func (e *ExprSub) Type() types.Type {
136 // Cache type if not present.
137 if e.Typ == nil {
138 e.Typ = e.X.Type()
139 }
140 return e.Typ
141}
142
143// Ident returns the identifier associated with the constant expression.
144func (e *ExprSub) Ident() string {

Callers 2

NewSubFunction · 0.95
StringMethod · 0.95

Calls 1

TypeMethod · 0.65

Tested by

no test coverage detected