diff options
Diffstat (limited to 'src/ide/analyze.rs')
| -rw-r--r-- | src/ide/analyze.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ide/analyze.rs b/src/ide/analyze.rs index c170186f..65d9ded8 100644 --- a/src/ide/analyze.rs +++ b/src/ide/analyze.rs @@ -7,9 +7,7 @@ use crate::World; /// Try to determine a set of possible values for an expression. pub fn analyze(world: &(dyn World + 'static), node: &LinkedNode) -> Vec<Value> { match node.cast::<ast::Expr>() { - Some( - ast::Expr::Ident(_) | ast::Expr::MathIdent(_) | ast::Expr::MethodCall(_), - ) => { + Some(ast::Expr::Ident(_) | ast::Expr::MathIdent(_) | ast::Expr::FuncCall(_)) => { if let Some(parent) = node.parent() { if parent.kind() == SyntaxKind::FieldAccess && node.index() > 0 { return analyze(world, parent); |
