mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 23:36:39 +00:00
Update SemIR yaml and text for multi-file. (#3217)
Building on #3214 and #3215, updates sem_ir yaml to be: ``` - filename: name sem_ir: [ ... ] ``` Also, changes the textual format from `package { ... }` to `file <filename> { ... }`. My thought on packages there is: ``` file "foo.carbon" { package MyPackage ... } ``` The reason for putting the file first is that it's easier if we put what we're grouping on first, whereas the package is an "annotation" on the file.
This commit is contained in:
1 parent
0b340a2ed2
commit
9ae41b2965
153 files changed
+625
-393
No files matched your search
@@ -8,7 +8,7 @@ fn F();
|
||||
|
||||
fn G() { F(); }
|
||||
|
||||
// CHECK:STDOUT: package {
|
||||
// CHECK:STDOUT: file "simple.carbon" {
|
||||
// CHECK:STDOUT: %.loc7 = fn_decl @F
|
||||
// CHECK:STDOUT: %.loc9 = fn_decl @G
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
Reference in new issue
Block a user