Skip to content

Commit 152088f

Browse files
committed
Move subdirectories of 'interpreter' to top level
1 parent 4a2d406 commit 152088f

File tree

877 files changed

+1823
-1837
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

877 files changed

+1823
-1837
lines changed

β€Žruntime/activations/activations.go β€Žactivations/activations.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
package activations
2020

2121
import (
22-
"github.com/onflow/cadence/runtime/common"
22+
"github.com/onflow/cadence/common"
2323
)
2424

2525
// Activation is a map of strings to values.
File renamed without changes.

β€Žruntime/ast/access.go β€Žast/access.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"encoding/json"
2323
"strings"
2424

25-
"github.com/onflow/cadence/runtime/common"
26-
"github.com/onflow/cadence/runtime/errors"
25+
"github.com/onflow/cadence/common"
26+
"github.com/onflow/cadence/errors"
2727
)
2828

2929
//go:generate go run golang.org/x/tools/cmd/stringer -type=PrimitiveAccess
File renamed without changes.

β€Žruntime/ast/argument.go β€Žast/argument.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
type Argument struct {
File renamed without changes.
File renamed without changes.

β€Žruntime/ast/attachment.go β€Žast/attachment.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
// AttachmentDeclaration
File renamed without changes.

β€Žruntime/ast/block.go β€Žast/block.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
type Block struct {
File renamed without changes.

β€Žruntime/ast/composite.go β€Žast/composite.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
27-
"github.com/onflow/cadence/runtime/errors"
26+
"github.com/onflow/cadence/common"
27+
"github.com/onflow/cadence/errors"
2828
)
2929

3030
// ConformingDeclaration

β€Žruntime/ast/composite_test.go β€Žast/composite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/stretchr/testify/require"
2727
"github.com/turbolent/prettier"
2828

29-
"github.com/onflow/cadence/runtime/common"
29+
"github.com/onflow/cadence/common"
3030
)
3131

3232
func TestFieldDeclaration_MarshalJSON(t *testing.T) {

β€Žruntime/ast/conditionkind.go β€Žast/conditionkind.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package ast
2121
import (
2222
"encoding/json"
2323

24-
"github.com/onflow/cadence/runtime/errors"
24+
"github.com/onflow/cadence/errors"
2525
)
2626

2727
//go:generate go run golang.org/x/tools/cmd/stringer -type=ConditionKind
File renamed without changes.
File renamed without changes.

β€Žruntime/ast/declaration.go β€Žast/declaration.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
type Declaration interface {
File renamed without changes.
File renamed without changes.

β€Žruntime/ast/entitlement_declaration.go β€Žast/entitlement_declaration.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
// EntitlementDeclaration

β€Žruntime/ast/expression.go β€Žast/expression.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import (
2626

2727
"github.com/turbolent/prettier"
2828

29-
"github.com/onflow/cadence/runtime/errors"
29+
"github.com/onflow/cadence/errors"
3030

31-
"github.com/onflow/cadence/runtime/common"
31+
"github.com/onflow/cadence/common"
3232
)
3333

3434
const NilConstant = "nil"
File renamed without changes.

β€Žruntime/ast/expression_extractor.go β€Žast/expression_extractor.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ package ast
2121
import (
2222
"fmt"
2323

24-
"github.com/onflow/cadence/runtime/common"
25-
"github.com/onflow/cadence/runtime/errors"
24+
"github.com/onflow/cadence/common"
25+
"github.com/onflow/cadence/errors"
2626
)
2727

2828
type VoidExtractor interface {
File renamed without changes.

β€Žruntime/ast/function_declaration.go β€Žast/function_declaration.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
27-
"github.com/onflow/cadence/runtime/errors"
26+
"github.com/onflow/cadence/common"
27+
"github.com/onflow/cadence/errors"
2828
)
2929

3030
type FunctionPurity int

β€Žruntime/ast/function_declaration_test.go β€Žast/function_declaration_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/stretchr/testify/require"
2727
"github.com/turbolent/prettier"
2828

29-
"github.com/onflow/cadence/runtime/common"
29+
"github.com/onflow/cadence/common"
3030
)
3131

3232
func TestFunctionDeclaration_MarshalJSON(t *testing.T) {

β€Žruntime/ast/identifier.go β€Žast/identifier.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package ast
2121
import (
2222
"encoding/json"
2323

24-
"github.com/onflow/cadence/runtime/common"
24+
"github.com/onflow/cadence/common"
2525
)
2626

2727
// Identifier

β€Žruntime/ast/import.go β€Žast/import.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
// ImportDeclaration

β€Žruntime/ast/import_test.go β€Žast/import_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/stretchr/testify/require"
2727
"github.com/turbolent/prettier"
2828

29-
"github.com/onflow/cadence/runtime/common"
29+
"github.com/onflow/cadence/common"
3030
)
3131

3232
func TestImportDeclaration_MarshalJSON(t *testing.T) {
File renamed without changes.
File renamed without changes.

β€Žruntime/ast/inspector_test.go β€Žast/inspector_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import (
2323

2424
"github.com/stretchr/testify/require"
2525

26-
"github.com/onflow/cadence/runtime/ast"
27-
"github.com/onflow/cadence/runtime/parser"
28-
"github.com/onflow/cadence/runtime/tests/examples"
26+
"github.com/onflow/cadence/ast"
27+
"github.com/onflow/cadence/parser"
28+
"github.com/onflow/cadence/tests/examples"
2929
)
3030

3131
// TestInspector_Elements compares Inspector against Inspect.

β€Žruntime/ast/interface.go β€Žast/interface.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
// InterfaceDeclaration

β€Žruntime/ast/interface_test.go β€Žast/interface_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/stretchr/testify/require"
2727
"github.com/turbolent/prettier"
2828

29-
"github.com/onflow/cadence/runtime/common"
29+
"github.com/onflow/cadence/common"
3030
)
3131

3232
func TestInterfaceDeclaration_MarshalJSON(t *testing.T) {

β€Žruntime/ast/memberindices.go β€Žast/memberindices.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package ast
2121
import (
2222
"sync"
2323

24-
"github.com/onflow/cadence/runtime/common"
24+
"github.com/onflow/cadence/common"
2525
)
2626

2727
// programIndices is a container for all indices of members

β€Žruntime/ast/memberindices_test.go β€Žast/memberindices_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424

2525
"github.com/stretchr/testify/require"
2626

27-
"github.com/onflow/cadence/runtime/common"
27+
"github.com/onflow/cadence/common"
2828
)
2929

3030
func TestMemberIndices(t *testing.T) {

β€Žruntime/ast/members.go β€Žast/members.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
// Members
File renamed without changes.

β€Žruntime/ast/operation.go β€Žast/operation.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package ast
2121
import (
2222
"encoding/json"
2323

24-
"github.com/onflow/cadence/runtime/errors"
24+
"github.com/onflow/cadence/errors"
2525
)
2626

2727
//go:generate go run golang.org/x/tools/cmd/stringer -type=Operation
File renamed without changes.
File renamed without changes.

β€Žruntime/ast/parameter.go β€Žast/parameter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
type Parameter struct {

β€Žruntime/ast/parameterlist.go β€Žast/parameterlist.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
type ParameterList struct {
File renamed without changes.

β€Žruntime/ast/position.go β€Žast/position.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package ast
2121
import (
2222
"fmt"
2323

24-
"github.com/onflow/cadence/runtime/common"
24+
"github.com/onflow/cadence/common"
2525
)
2626

2727
var EmptyPosition = Position{}

β€Žruntime/ast/pragma.go β€Žast/pragma.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
// Pragma
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

β€Žruntime/ast/program.go β€Žast/program.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
type Program struct {
File renamed without changes.
File renamed without changes.

β€Žruntime/ast/programindices_test.go β€Žast/programindices_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424

2525
"github.com/stretchr/testify/require"
2626

27-
"github.com/onflow/cadence/runtime/common"
27+
"github.com/onflow/cadence/common"
2828
)
2929

3030
func TestProgramIndices(t *testing.T) {

β€Žruntime/ast/statement.go β€Žast/statement.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424

2525
"github.com/turbolent/prettier"
2626

27-
"github.com/onflow/cadence/runtime/common"
27+
"github.com/onflow/cadence/common"
2828
)
2929

3030
type Statement interface {
File renamed without changes.
File renamed without changes.

β€Žruntime/ast/string_test.go β€Žast/string_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424

2525
"github.com/stretchr/testify/assert"
2626

27-
"github.com/onflow/cadence/runtime/ast"
28-
"github.com/onflow/cadence/runtime/parser"
27+
"github.com/onflow/cadence/ast"
28+
"github.com/onflow/cadence/parser"
2929
)
3030

3131
func TestQuoteString(t *testing.T) {

β€Žruntime/ast/transaction_declaration.go β€Žast/transaction_declaration.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
type TransactionDeclaration struct {

β€Žruntime/ast/transaction_declaration_test.go β€Žast/transaction_declaration_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/stretchr/testify/require"
2727
"github.com/turbolent/prettier"
2828

29-
"github.com/onflow/cadence/runtime/common"
29+
"github.com/onflow/cadence/common"
3030
)
3131

3232
func TestTransactionDeclaration_MarshalJSON(t *testing.T) {

β€Žruntime/ast/transfer.go β€Žast/transfer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
// Transfer represents the operation in variable declarations
File renamed without changes.

β€Žruntime/ast/transferoperation.go β€Žast/transferoperation.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package ast
2121
import (
2222
"encoding/json"
2323

24-
"github.com/onflow/cadence/runtime/errors"
24+
"github.com/onflow/cadence/errors"
2525
)
2626

2727
//go:generate go run golang.org/x/tools/cmd/stringer -type=TransferOperation
File renamed without changes.
File renamed without changes.

β€Žruntime/ast/type.go β€Žast/type.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424

2525
"github.com/turbolent/prettier"
2626

27-
"github.com/onflow/cadence/runtime/common"
28-
"github.com/onflow/cadence/runtime/errors"
27+
"github.com/onflow/cadence/common"
28+
"github.com/onflow/cadence/errors"
2929
)
3030

3131
const typeSeparatorSpaceDoc = prettier.Text(": ")
File renamed without changes.

β€Žruntime/ast/typeparameter.go β€Žast/typeparameter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
package ast
2020

21-
import "github.com/onflow/cadence/runtime/common"
21+
import "github.com/onflow/cadence/common"
2222

2323
type TypeParameter struct {
2424
Identifier Identifier

β€Žruntime/ast/typeparameterlist.go β€Žast/typeparameterlist.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
type TypeParameterList struct {

β€Žruntime/ast/variable_declaration.go β€Žast/variable_declaration.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/turbolent/prettier"
2525

26-
"github.com/onflow/cadence/runtime/common"
26+
"github.com/onflow/cadence/common"
2727
)
2828

2929
type VariableDeclaration struct {

β€Žruntime/ast/variablekind.go β€Žast/variablekind.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package ast
2121
import (
2222
"encoding/json"
2323

24-
"github.com/onflow/cadence/runtime/errors"
24+
"github.com/onflow/cadence/errors"
2525
)
2626

2727
//go:generate go run golang.org/x/tools/cmd/stringer -type=VariableKind
File renamed without changes.
File renamed without changes.

β€Žruntime/ast/visitor.go β€Žast/visitor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
package ast
2020

2121
import (
22-
"github.com/onflow/cadence/runtime/errors"
22+
"github.com/onflow/cadence/errors"
2323
)
2424

2525
type Element interface {
File renamed without changes.

0 commit comments

Comments
Β (0)