cairo-language-server 2.20.0

The Cairo Language Server
Documentation
use lsp_types::request::References;

use crate::support::insta::test_transform_with_macros;

#[test]
fn generated_function() {
    test_transform_with_macros!(References, r#"
    #[complex_attribute_macro_v2]
    fn main() {
        let foobar = 123;
    }
    fn bar() {
        genera<caret>ted_function_v2();  // function generated by the attribute macro above
    }
    "#, @r"
    <sel=declaration>#[complex_attribute_macro_v2]</sel>
    fn main() {
        let foobar = 123;
    }
    fn bar() {
        <sel>generated_function_v2</sel>();  // function generated by the attribute macro above
    }
    ")
}