Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions experimental/ir/doc.go
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little confused by this commit (2553cb4). Why do the files need an ir_ prefix to group together? What other prefixes do you expect to see in this package in the future?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect there to be a lower_ prefix for the AST->IR lowering code.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2020-2025 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License

// package ir defines the intermediate representation used by Protocompile.
//
// This package provides both the IR, and the lowering machinery for that IR.
// The IR is intended to provide a richer and easier to manipulate structure
// compared to a FileDescriptorProto. This structure is used for name
// resolution, type checking, tag number validation, and other semantic
// operations.
package ir
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions experimental/ir/option.go → experimental/ir/ir_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ type rawOption struct {
//
// In particular, (foo.bar).baz is represented as ["", "foo.bar", "baz"].
//
// The names of extensions therein are populated with fully qualified names,
// without the leading dot.
// The names of extensions therein are to be interpreted as absolute (i.e.,
// fully-qualified), although they will not have leading dots.
//
// If this slice is nil, that means that name resolution has not happened
// yet, and the ast node contains the partially-qualified extension names
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions experimental/ir/presence/kind.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading