Skip to content

Introduce CompiledCGPatterns capturing the TS-Query and regex (placeholder)#527

Merged
ketkarameya merged 4 commits intogh/ketkarameya/25/basefrom
gh/ketkarameya/25/head
Jul 10, 2023
Merged

Introduce CompiledCGPatterns capturing the TS-Query and regex (placeholder)#527
ketkarameya merged 4 commits intogh/ketkarameya/25/basefrom
gh/ketkarameya/25/head

Conversation

@ketkarameya
Copy link
Copy Markdown
Collaborator

@ketkarameya ketkarameya commented Jul 5, 2023

Introduces CompiledCGPattern which wraps treesitter::Query and regex::Regex

(A simple temporary test to show that regex support is added but not supported. This test is updated in the stacked diff).


Stack from ghstack (oldest at bottom):

ketkarameya added a commit that referenced this pull request Jul 5, 2023
@ketkarameya ketkarameya mentioned this pull request Jul 5, 2023
Copy link
Copy Markdown
Contributor

@lazaroclapp lazaroclapp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor documentation nit (also, might be worth having a full documentation comment for both get_match and get_matches)

}

impl CompiledCGPattern {
/// Applies the query upon the given node, and gets all the matches
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the documentation correct here? It seems this returns 0 or 1 matches. Is this meant to be the docstring for get_matches?

…gex (placeholder)"

Introduces `CompiledCGPattern` which wraps `treesitter::Query` and `regex::Regex`

(A simple temporary test to show that regex support is added but not supported. This test is updated in the stacked diff). 


------



[ghstack-poisoned]
…gex (placeholder)"

Introduces `CompiledCGPattern` which wraps `treesitter::Query` and `regex::Regex`

(A simple temporary test to show that regex support is added but not supported. This test is updated in the stacked diff). 


------



[ghstack-poisoned]
@ketkarameya ketkarameya mentioned this pull request Jul 10, 2023
Copy link
Copy Markdown
Contributor

@lazaroclapp lazaroclapp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ketkarameya ketkarameya merged commit 45bca71 into gh/ketkarameya/25/base Jul 10, 2023
ketkarameya added a commit that referenced this pull request Jul 10, 2023
@ketkarameya ketkarameya deleted the gh/ketkarameya/25/head branch July 10, 2023 18:54
collabrpay added a commit to collabrpay/solid-tribble that referenced this pull request Aug 11, 2024
…older)

ghstack-source-id: 0ef1c1ae7eaf0b3c2d49a0287818b1b2677b33a0
Pull Request resolved: uber/piranha#527
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants