Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: mojom/mojom_parser/mojom/mojom_descriptor.go

Issue 1766463002: Implement formatting exclusion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojom/mojom_parser/formatter/printer.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojom/mojom_parser/mojom/mojom_descriptor.go
diff --git a/mojom/mojom_parser/mojom/mojom_descriptor.go b/mojom/mojom_parser/mojom/mojom_descriptor.go
index 65cac4d469608749c8e6dff4555bb4c8a7339bcb..ffa7d7f2f33cb4a4286822dcb0367f27bf322725 100644
--- a/mojom/mojom_parser/mojom/mojom_descriptor.go
+++ b/mojom/mojom_parser/mojom/mojom_descriptor.go
@@ -252,6 +252,10 @@ func (f *MojomFile) AddConstant(declaredConst *UserDefinedConstant) DuplicateNam
return declaredConst.RegisterInScope(f.FileScope)
}
+func (f *MojomFile) FileContents() string {
+ return f.fileContents
+}
+
func (f *MojomFile) checkInit() {
if f.FileScope == nil {
panic("InitializeFileScope must be invoked first.")
« no previous file with comments | « mojom/mojom_parser/formatter/printer.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698