-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Project import generated by Copybara. (#19)
GitOrigin-RevId: b6543158eaf5d247afad402a2b2f583721bec226 Co-authored-by: Copybara Bot <[email protected]>
- Loading branch information
Showing
16 changed files
with
250 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
( | ||
(class_specifier | ||
body: ( | ||
(field_declaration_list | ||
(_) @field | ||
) | ||
) | ||
) | ||
) | ||
|
||
( | ||
(struct_specifier | ||
body: ( | ||
(field_declaration_list | ||
_ @field | ||
) | ||
) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(type_declaration | ||
(type_spec | ||
type: (struct_type | ||
(field_declaration_list | ||
(field_declaration) @field | ||
) | ||
) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
(class_declaration | ||
(class_body | ||
(field_declaration) @field | ||
) | ||
) | ||
(class_declaration | ||
(class_body | ||
([ | ||
(constructor_declaration) | ||
]) @codeium.constructor | ||
) | ||
) | ||
|
||
(record_declaration | ||
(formal_parameters | ||
(formal_parameter) @field | ||
) | ||
) | ||
(record_declaration | ||
(class_body | ||
([ | ||
(constructor_declaration) | ||
(compact_constructor_declaration) | ||
]) @codeium.constructor | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
( | ||
(class_body | ||
([ | ||
(field_definition) | ||
]) @field | ||
) | ||
) | ||
|
||
( | ||
(comment)* @doc | ||
. | ||
(_ | ||
name: (property_identifier) @name | ||
parameters: (formal_parameters) @codeium.parameters | ||
body: (_)? @body) @codeium.constructor | ||
(#eq? @name "constructor") | ||
(#has-type? @codeium.constructor method_definition method_signature abstract_method_signature) | ||
(#select-adjacent! @doc @codeium.constructor) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(class_definition | ||
body: (block (expression_statement | ||
(assignment) @field | ||
)) | ||
) | ||
( | ||
(function_definition | ||
name: (identifier) @name | ||
parameters: (parameters) @codeium.parameters | ||
body: (block . (expression_statement . (string) @doc .)?) @body) @codeium.constructor | ||
(#eq? @name "__init__") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
;; For class_declaration | ||
( | ||
(class_body | ||
([ | ||
(public_field_definition) | ||
]) @field | ||
) | ||
) | ||
;; For type_alias_declaration and interface_declaration, whose body is an object_type | ||
( | ||
(object_type | ||
[ | ||
(property_signature) @field | ||
(construct_signature) @codeium.constructor | ||
(_) | ||
] | ||
) | ||
) | ||
|
||
( | ||
(comment)* @doc | ||
. | ||
(_ | ||
name: (property_identifier) @name | ||
parameters: (formal_parameters) @codeium.parameters | ||
return_type: ([ | ||
(type_annotation (_) @codeium.return_type) | ||
(asserts (_) @codeium.return_type) | ||
(type_predicate_annotation (_) @codeium.return_type) | ||
])? | ||
body: (_)? @body) @codeium.constructor | ||
(#eq? @name "constructor") | ||
(#has-type? @codeium.constructor method_definition method_signature abstract_method_signature) | ||
(#select-adjacent! @doc @codeium.constructor) | ||
) |
Oops, something went wrong.