blob: e2cf65c55762cad69a32bd20c72d4778ef70f0a3 [file] [log] [blame]
// Copyright 2017-2020 The Verible Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "verilog/tools/kythe/kythe_facts.h"
#include <iostream>
#include <string>
#include "absl/strings/substitute.h"
namespace verilog {
namespace kythe {
std::string VName::ToString() const {
return absl::Substitute(
R"({"signature": "$0","path": "$1","language": "$2","root": "$3","corpus": "$4"})",
signature_base_64, path, language, root, corpus);
}
std::ostream& operator<<(std::ostream& stream, const VName& vname) {
stream << vname.ToString();
return stream;
}
} // namespace kythe
} // namespace verilog