Skip to content

LanguageAdapter for VB.NET #6

@Attilio81

Description

@Attilio81

What's needed

A LanguageAdapter for VB.NET (.vb files) that handles:

  1. L1 module headers — using ' single-quote comment blocks (VB has no
    docstring syntax)
  2. L2 function rules — ' comment block immediately below Sub/Function
    signature
  3. Structural extraction — VB.NET has tree-sitter support
    (tree-sitter-vb) that could be used similarly to the existing C# adapter
  4. Idempotent inject/update — detect and replace existing block if present

Relevant existing work

  • C# adapter (languages/csharp.py) is the closest reference — VB.NET and C#
    share many structural patterns (classes, methods, properties)
  • tree-sitter-vb parser exists and is maintained
  • VB.NET is widely used in enterprise/ERP legacy systems (NTS Informatica,
    Microsoft Dynamics NAV, etc.) — significant untapped user base

Notes on VB.NET specifics

  • No docstrings — use ' comment blocks (already our approach above)
  • Methods use Sub (void) and Function (return value) instead of def
  • Classes declared with Public Class ... End Class
  • Common enterprise patterns: Imports statements, Module blocks

Happy to contribute or test a prototype if helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions