@@ -11,7 +11,7 @@ import {HorizontalDivider} from '/snippets/HorizontalDivider.mdx';
1111import {GithubLinkNote } from ' /snippets/GithubLinkNote.mdx' ;
1212import {Attribute } from ' /snippets/Attribute.mdx' ;
1313
14- <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L412-L1190 " />
14+ <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L412-L1192 " />
1515
1616### Inherits from
1717[ Usable] ( /api-reference/core/Usable ) , [ HasBlock] ( /api-reference/core/HasBlock ) , [ File] ( /api-reference/core/File ) , [ Importable] ( /api-reference/core/Importable ) , [ Expression] ( /api-reference/core/Expression ) , [ Editable] ( /api-reference/core/Editable ) , [ HasName] ( /api-reference/core/HasName )
@@ -186,7 +186,7 @@ Adds a decorator to a function or method.
186186
187187### <span className = " text-primary" >add_import</span >
188188Adds an import to the file.
189- <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L975-L1023 " />
189+ <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L977-L1025 " />
190190
191191<ParameterWrapper >
192192<Parameter
@@ -221,7 +221,7 @@ Adds an import to the file.
221221
222222### <span className = " text-primary" >add_symbol</span >
223223Adds ` symbol ` to the file.
224- <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L1046-L1077 " />
224+ <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L1048-L1079 " />
225225
226226<ParameterWrapper >
227227<Parameter
@@ -244,7 +244,7 @@ Adds `symbol` to the file.
244244
245245### <span className = " text-primary" >add_symbol_from_source</span >
246246Adds a symbol to a file from a string representation.
247- <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L1026-L1043 " />
247+ <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L1028-L1045 " />
248248
249249<ParameterWrapper >
250250<Parameter
@@ -350,7 +350,7 @@ Find and return matching nodes or substrings within an Editable instance.
350350
351351### <span className = " text-primary" >find_by_byte_range</span >
352352Finds all editable objects that overlap with the given byte range in the file.
353- <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L1173-L1185 " />
353+ <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L1175-L1187 " />
354354
355355<ParameterWrapper >
356356<Parameter
@@ -661,7 +661,7 @@ Removes the file from the file system and graph.
661661
662662### <span className = " text-primary" >remove_unused_exports</span >
663663Removes unused exports from the file.
664- <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L937-L944 " />
664+ <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L939-L946 " />
665665
666666
667667<Return return_type = { <code className = " text-sm bg-gray-100 px-2 py-0.5 rounded" >None</code > } description = " " />
@@ -838,7 +838,7 @@ Returns all Symbols in the file, sorted by position in the file.
838838
839839### <span className = " text-primary" >update_filepath</span >
840840Renames the file and updates all imports to point to the new location.
841- <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L951-L972 " />
841+ <GithubLinkNote link = " https://github.com/codegen-sh/graph-sitter/blob/develop/src/graph_sitter/core/file.py#L953-L974 " />
842842
843843<ParameterWrapper >
844844<Parameter
0 commit comments