Rmoved package
This commit is contained in:
@@ -102,10 +102,6 @@ impl GoCodegen {
|
||||
self.indent -= 1;
|
||||
self.addln("}\n");
|
||||
}
|
||||
TopLevel::Package(pkg) => {
|
||||
self.addln(&format!("package {}", pkg));
|
||||
self.addln("");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-5
@@ -47,11 +47,7 @@ pub fn build() {
|
||||
}
|
||||
};
|
||||
|
||||
let parser_result = if script {
|
||||
parser::script_parser::parse(&source).map_err(|e| e.to_string())
|
||||
} else {
|
||||
parser::parse(&source).map_err(|e| e.to_string())
|
||||
};
|
||||
let parser_result = parser::parse(&source).map_err(|e| e.to_string());
|
||||
|
||||
let mut ast = match parser_result {
|
||||
Ok(ast) => ast,
|
||||
|
||||
Reference in New Issue
Block a user