Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 31, 2025
1 parent 66438e4 commit 5dca573
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions vlib/v/type_resolver/comptime_resolver.v
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@ pub fn (mut t TypeResolver) get_comptime_selector_var_type(node ast.ComptimeSele
return field, field_name
}

// is_comptime_expr checks if the node is related to a comptime expr
@[inline]
pub fn (t &ResolverInfo) is_comptime_expr(node ast.Expr) bool {
return (node is ast.Ident && node.ct_expr)
|| (node is ast.IndexExpr && t.is_comptime_expr(node.left))
|| node is ast.ComptimeSelector
|| (node is ast.PostfixExpr && t.is_comptime_expr(node.expr))
}

// has_comptime_expr checks if the expr contains some comptime expr
@[inline]
pub fn (t &ResolverInfo) has_comptime_expr(node ast.Expr) bool {
Expand Down

0 comments on commit 5dca573

Please sign in to comment.