mirror of
https://github.com/github/codeql.git
synced 2026-06-29 16:47:09 +02:00
Fix source_text call in @@raw_lhs documentation example
This commit is contained in:
committed by
GitHub
parent
fb424020af
commit
041a8e6adc
@@ -320,7 +320,7 @@ yeast::rule!(
|
||||
=>
|
||||
{
|
||||
// raw_lhs is untranslated: read its original source text.
|
||||
let text = ctx.ast.source_text(raw_lhs.into());
|
||||
let text = ctx.ast.source_text(raw_lhs);
|
||||
// rhs is already translated by the auto-translate prefix.
|
||||
tree!((call
|
||||
method: (identifier #{text.as_str()})
|
||||
|
||||
Reference in New Issue
Block a user