From 804c9c8b1e8d763ad42aa88c388c86f614792a72 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 15 Jan 2018 15:51:20 -0800 Subject: [PATCH] Copy Query*::kind to Index*::kind --- src/query.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/query.cc b/src/query.cc index 23bceeca..e8cccb8c 100644 --- a/src/query.cc +++ b/src/query.cc @@ -37,6 +37,7 @@ optional ToQuery(const IdMap& id_map, QueryType::Def result; result.short_name = type.short_name; result.detailed_name = type.detailed_name; + result.kind = type.kind; result.hover = type.hover; result.comments = type.comments; result.definition_spelling = id_map.ToQuery(type.definition_spelling); @@ -57,6 +58,7 @@ optional ToQuery(const IdMap& id_map, QueryFunc::Def result; result.short_name = func.short_name; result.detailed_name = func.detailed_name; + result.kind = func.kind; result.hover = func.hover; result.comments = func.comments; result.definition_spelling = id_map.ToQuery(func.definition_spelling); @@ -76,6 +78,7 @@ optional ToQuery(const IdMap& id_map, const IndexVar::Def& var) { QueryVar::Def result; result.short_name = var.short_name; result.detailed_name = var.detailed_name; + result.kind = var.kind; result.hover = var.hover; result.comments = var.comments; result.declaration = id_map.ToQuery(var.declaration); @@ -83,7 +86,6 @@ optional ToQuery(const IdMap& id_map, const IndexVar::Def& var) { result.definition_extent = id_map.ToQuery(var.definition_extent); result.variable_type = id_map.ToQuery(var.variable_type); result.declaring_type = id_map.ToQuery(var.declaring_type); - result.kind = var.kind; return result; }