diff

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

The diff package provides an implementation of the patch package for the generic rbxapi types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassAction

type ClassAction struct {
	Type  patch.Type
	Class rbxapi.Class
	Field string
	Prev  interface{}
	Next  interface{}
}

ClassAction represents a patch.Action that applies to a rbxapi.Class.

func (*ClassAction) GetClass

func (a *ClassAction) GetClass() rbxapi.Class

func (*ClassAction) GetField

func (a *ClassAction) GetField() string

func (*ClassAction) GetNext

func (a *ClassAction) GetNext() interface{}

func (*ClassAction) GetPrev

func (a *ClassAction) GetPrev() interface{}

func (*ClassAction) GetType

func (a *ClassAction) GetType() patch.Type

func (*ClassAction) String

func (a *ClassAction) String() string

type Diff

type Diff struct {
	Prev, Next rbxapi.Root
}

Diff is a patch.Differ that finds differences between two rbxapi.Root values.

func (*Diff) Diff

func (d *Diff) Diff() (actions []patch.Action)

Diff implements the patch.Differ interface.

type DiffCallback

type DiffCallback struct {
	// Class is the outer structure of the Prev value.
	Class      rbxapi.Class
	Prev, Next rbxapi.Callback
}

DiffCallback is a patch.Differ that finds differences between two rbxapi.Callback values.

func (*DiffCallback) Diff

func (d *DiffCallback) Diff() (actions []patch.Action)

Diff implements the patch.Differ interface.

type DiffClass

type DiffClass struct {
	Prev, Next rbxapi.Class
	// ExcludeMembers indicates whether members should be diffed.
	ExcludeMembers bool
}

DiffClass is a patch.Differ that finds differences between two rbxapi.Class values.

func (*DiffClass) Diff

func (d *DiffClass) Diff() (actions []patch.Action)

Diff implements the patch.Differ interface.

type DiffEnum

type DiffEnum struct {
	Prev, Next rbxapi.Enum
	// ExcludeEnumItems indicates whether enum items should be diffed.
	ExcludeEnumItems bool
}

DiffEnum is a patch.Differ that finds differences between two rbxapi.Enum values.

func (*DiffEnum) Diff

func (d *DiffEnum) Diff() (actions []patch.Action)

Diff implements the patch.Differ interface.

type DiffEnumItem

type DiffEnumItem struct {
	// Enum is the outer structure of the Prev value.
	Enum       rbxapi.Enum
	Prev, Next rbxapi.EnumItem
}

DiffEnumItem is a patch.Differ that finds differences between two rbxapi.EnumItem values.

func (*DiffEnumItem) Diff

func (d *DiffEnumItem) Diff() (actions []patch.Action)

Diff implements the patch.Differ interface.

type DiffEvent

type DiffEvent struct {
	// Class is the outer structure of the Prev value.
	Class      rbxapi.Class
	Prev, Next rbxapi.Event
}

DiffEvent is a patch.Differ that finds differences between two rbxapi.Event values.

func (*DiffEvent) Diff

func (d *DiffEvent) Diff() (actions []patch.Action)

Diff implements the patch.Differ interface.

type DiffFunction

type DiffFunction struct {
	// Class is the outer structure of the Prev value.
	Class      rbxapi.Class
	Prev, Next rbxapi.Function
}

DiffFunction is a patch.Differ that finds differences between two rbxapi.Function values.

func (*DiffFunction) Diff

func (d *DiffFunction) Diff() (actions []patch.Action)

Diff implements the patch.Differ interface.

type DiffProperty

type DiffProperty struct {
	// Class is the outer structure of the Prev value.
	Class      rbxapi.Class
	Prev, Next rbxapi.Property
}

DiffProperty is a patch.Differ that finds differences between two rbxapi.Property values.

func (*DiffProperty) Diff

func (d *DiffProperty) Diff() (actions []patch.Action)

Diff implements the patch.Differ interface.

type EnumAction

type EnumAction struct {
	Type  patch.Type
	Enum  rbxapi.Enum
	Field string
	Prev  interface{}
	Next  interface{}
}

EnumAction represents a patch.Action that applies to a rbxapi.Enum.

func (*EnumAction) GetEnum

func (a *EnumAction) GetEnum() rbxapi.Enum

func (*EnumAction) GetField

func (a *EnumAction) GetField() string

func (*EnumAction) GetNext

func (a *EnumAction) GetNext() interface{}

func (*EnumAction) GetPrev

func (a *EnumAction) GetPrev() interface{}

func (*EnumAction) GetType

func (a *EnumAction) GetType() patch.Type

func (*EnumAction) String

func (a *EnumAction) String() string

type EnumItemAction

type EnumItemAction struct {
	Type     patch.Type
	Enum     rbxapi.Enum
	EnumItem rbxapi.EnumItem
	Field    string
	Prev     interface{}
	Next     interface{}
}

EnumItemAction represents a patch.Action that applies to a rbxapi.EnumItem.

func (*EnumItemAction) GetEnum

func (a *EnumItemAction) GetEnum() rbxapi.Enum

func (*EnumItemAction) GetEnumItem

func (a *EnumItemAction) GetEnumItem() rbxapi.EnumItem

func (*EnumItemAction) GetField

func (a *EnumItemAction) GetField() string

func (*EnumItemAction) GetNext

func (a *EnumItemAction) GetNext() interface{}

func (*EnumItemAction) GetPrev

func (a *EnumItemAction) GetPrev() interface{}

func (*EnumItemAction) GetType

func (a *EnumItemAction) GetType() patch.Type

func (*EnumItemAction) String

func (a *EnumItemAction) String() string

type MemberAction

type MemberAction struct {
	Type   patch.Type
	Class  rbxapi.Class
	Member rbxapi.Member
	Field  string
	Prev   interface{}
	Next   interface{}
}

MemberAction represents a patch.Action that applies to a rbxapi.Member.

func (*MemberAction) GetClass

func (a *MemberAction) GetClass() rbxapi.Class

func (*MemberAction) GetField

func (a *MemberAction) GetField() string

func (*MemberAction) GetMember

func (a *MemberAction) GetMember() rbxapi.Member

func (*MemberAction) GetNext

func (a *MemberAction) GetNext() interface{}

func (*MemberAction) GetPrev

func (a *MemberAction) GetPrev() interface{}

func (*MemberAction) GetType

func (a *MemberAction) GetType() patch.Type

func (*MemberAction) String

func (a *MemberAction) String() string

Jump to

Keyboard shortcuts

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