parser

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package parser implements contract parsing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser parses function contracts

func NewParser

func NewParser() Parser

NewParser create a new contract parser

func (*Parser) ParseFuncContract

func (p *Parser) ParseFuncContract(comments []*ast.Comment) (result *contract.FuncContract, err error)

func (*Parser) ParseTypeContract

func (p *Parser) ParseTypeContract(typeName string, comments []*ast.Comment) (result *contract.TypeContract, err error)

Jump to

Keyboard shortcuts

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