binding

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2026 License: AGPL-3.0, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package binding wraps tree-sitter-solidity (vendored from github.com/JoranHonig/tree-sitter-solidity v1.2.13, MIT-licensed — see ./LICENSE) into a *sitter.Language for go-tree-sitter.

Upstream ships only C / Node / Python / Rust / Swift bindings, so we vendor parser.c + the tree_sitter header into this package and let CGO compile them alongside our Go code. CKG follows the same pattern (internal/parse/solidity/binding) — both projects vendor independently rather than sharing a Go dep, matching the architectural rule that CKV does NOT import CKG.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLanguage

func GetLanguage() *sitter.Language

GetLanguage returns the Solidity *sitter.Language. Safe to call many times — go-tree-sitter wraps the same C pointer each time.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL