blob: 8a6f4ea9bc7f1b244966da74efd1e5a0131e8cee [file] [log] [blame] [edit]
// Copyright 2021 The Fuchsia 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 summarize
import (
"go.fuchsia.dev/fuchsia/tools/fidl/lib/fidlgen"
)
const libraryKind Kind = "library"
// library is a library element.
type library struct {
r fidlgen.Root
notMember
}
// Name implements Element.
func (l *library) Name() Name {
return Name(l.r.Name)
}
func (l *library) Serialize() ElementStr {
var e ElementStr
e.Name = l.Name()
e.Kind = libraryKind
return e
}