Lines Matching defs:package
293 // The vector of types is package specific.
299 this->require_c_string("package ");
341 while (stream->match_c_string("package"))
350 // Loop over all the input data for this package.
387 // Read a package line. This let us reliably determine the pkgpath
388 // symbol, even if the package was compiled with a -fgo-prefix option.
393 this->require_c_string("package ");
471 // The named type has been added to the package by the type import
498 // with a type defined in a different package.
501 Import::import_func(Package* package)
533 no = rtype->named_type()->add_method_declaration(name, package, fntype,
537 package,
545 no = package->add_function_declaration(name, fntype, loc);
639 // If this type is in the package we are currently importing, the
657 // The package name may follow. This is the name of the package in
658 // the package clause of that package. The type name will include
669 // Declare the type in the appropriate package. If we haven't seen
673 Package* package;
675 package = this->package_;
678 package = this->gogo_->register_package(pkgpath, "",
681 package->set_package_name(package_name, this->location());
684 Named_object* no = package->bindings()->lookup(type_name);
686 no = package->add_type_declaration(type_name, this->location_);
695 go_assert(no->package() == package);
724 no = package->add_type(type_name, type, this->location_);
755 this->import_func(package);