MCPcopy Index your code
hub / github.com/endbasic/endbasic / accepts

Method accepts

core/src/ast.rs:278–283  ·  view source on GitHub ↗

Returns true if this reference is compatible with the given type.

(&self, other: ExprType)

Source from the content-addressed store, hash-verified

276
277 /// Returns true if this reference is compatible with the given type.
278 pub fn accepts(&self, other: ExprType) -> bool {
279 match self.ref_type {
280 None => true,
281 Some(vtype) => vtype == other,
282 }
283 }
284
285 /// Returns true if this reference is compatible with the return type of a callable.
286 pub fn accepts_callable(&self, other: Option<ExprType>) -> bool {

Callers 1

get_varFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected