mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-24 05:05:00 +00:00
fix: correctly determine is_set
for checking targets (#286)
This commit is contained in:
parent
8cbd32c724
commit
3cd86a06a7
1 changed files with 2 additions and 2 deletions
|
@ -305,7 +305,7 @@ pub fn get_check_target_by_context<'a>(
|
|||
};
|
||||
let args = parent.find(args.span())?;
|
||||
|
||||
let is_set = parent.kind() == SyntaxKind::Set;
|
||||
let is_set = parent.kind() == SyntaxKind::SetRule;
|
||||
let target = get_param_target(args.clone(), node, ParamKind::Call)?;
|
||||
Some(CheckTarget::Param {
|
||||
callee,
|
||||
|
@ -336,7 +336,7 @@ pub fn get_check_target(node: LinkedNode) -> Option<CheckTarget<'_>> {
|
|||
};
|
||||
let args = parent.find(args.span())?;
|
||||
|
||||
let is_set = parent.kind() == SyntaxKind::Set;
|
||||
let is_set = parent.kind() == SyntaxKind::SetRule;
|
||||
let target = get_param_target(args.clone(), node, ParamKind::Call)?;
|
||||
return Some(CheckTarget::Param {
|
||||
callee,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue