Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
emil14 committed Sep 27, 2023
1 parent 54998e2 commit fd683e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions internal/compiler/analyzer/analyzer.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
// Package analyzer implements source code analysis.
package analyzer

import "github.com/nevalang/neva/internal/compiler/src"

type Analyzer struct{}

func (a Analyzer) Analyze(prog src.Program) (src.File, error) {
return src.File{}, nil
}
2 changes: 1 addition & 1 deletion internal/compiler/src/src.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Program map[string]Package
// Package represents both source code package and program after optimization
type Package map[string]File

// File represents both source code file and the whole package after optimization.
// File represents source code file. Also can represent single-file package.
type File struct {
Imports map[string]string
Entities map[string]Entity
Expand Down

0 comments on commit fd683e0

Please sign in to comment.