Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

A typed visitor would be nice

Open
#123 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
sql

Research direction

Start by locating the existing ISqlCodeObjectVisitor interface and the visitor implementations exposed by SqlScriptDom. Compare their Visit() methods and determine how a generic return type could cover the AST; done means a documented typed visitor API supports expression parsing without breaking the existing void visitor behavior.

Written by the indexing model from the issue text.

Description

I'm trying to convert a project over from SqlParser, because SqlParser lacks support for some things I'm trying to parse and it doesn't have source available. But I've hit a roadblock: SqlScriptDom doesn't have anything analogous to ISqlCodeObjectVisitor<T>, which allows you to create visitors where every Visit() method returns T rather than void. It's incredibly useful for things like parsing expressions.

Would it be possible to add a typed visitor to SqlScriptDom?

Dominant language
GAP
Stars
277
Forks
43
Avg merge
6d 17h
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/SqlScriptDOM

All issues in microsoft/SqlScriptDOM

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.