2008-07-10 18:21:23 -06:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package Object
|
|
|
|
|
|
|
|
import Globals "globals"
|
|
|
|
|
|
|
|
|
2008-07-24 18:00:58 -06:00
|
|
|
export BAD, CONST, TYPE, VAR, FUNC, PACKAGE, LABEL, PTYPE
|
2008-07-10 18:21:23 -06:00
|
|
|
const /* kind */ (
|
|
|
|
BAD = iota; // error handling
|
2008-07-24 18:00:58 -06:00
|
|
|
CONST; TYPE; VAR; FUNC; PACKAGE; LABEL;
|
2008-07-10 18:21:23 -06:00
|
|
|
PTYPE; // primary type (import/export only)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2008-07-14 17:57:42 -06:00
|
|
|
// The 'Object' declaration should be here as well, but 6g cannot handle
|
|
|
|
// this due to cross-package circular references. For now it's all in
|
|
|
|
// globals.go.
|