bblfsh

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: AGPL-3.0 Imports: 8 Imported by: 2

Documentation

Overview

Package bblfsh provides access to bblfsh parsing for the data service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseScanner

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

type ChangeScanner

type ChangeScanner struct {
	BaseScanner
	// contains filtered or unexported fields
}

ChangeScanner is a scanner for changes.

func (*ChangeScanner) Change

func (s *ChangeScanner) Change() *lookout.Change

func (*ChangeScanner) Close

func (s *ChangeScanner) Close() error

func (*ChangeScanner) Err

func (s *ChangeScanner) Err() error

func (*ChangeScanner) Next

func (s *ChangeScanner) Next() bool

type FileScanner

type FileScanner struct {
	BaseScanner
	// contains filtered or unexported fields
}

FileScanner is a scanner for files.

func (*FileScanner) Close

func (s *FileScanner) Close() error

func (*FileScanner) Err

func (s *FileScanner) Err() error

func (*FileScanner) File

func (s *FileScanner) File() *lookout.File

func (*FileScanner) Next

func (s *FileScanner) Next() bool

type Service

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

Service implements data service interface which adds UAST to the responses

func NewService

func NewService(
	changes lookout.ChangeGetter,
	files lookout.FileGetter,
	conn *grpc.ClientConn,
	parseTimeout time.Duration,
) *Service

NewService creates new bblfsh Service A parseTimeout of zero means no timeout.

func (*Service) GetChanges

GetChanges returns a ChangeScanner that scans all changes according to the request.

func (*Service) GetFiles

func (s *Service) GetFiles(ctx context.Context, req *lookout.FilesRequest) (lookout.FileScanner, error)

GetFiles returns a FilesScanner that scans all files according to the request.

Jump to

Keyboard shortcuts

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