From 6953049e5f67dcc940cc4edc228c1be13a4624d1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 31 Jul 2018 23:13:55 +0300 Subject: Rename VALUE_PARAMETER -> PARAM --- src/grammar.ron | 2 +- src/parser/grammar/params.rs | 2 +- src/syntax_kinds/generated.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/grammar.ron b/src/grammar.ron index 24f11f63e..a9a3847c9 100644 --- a/src/grammar.ron +++ b/src/grammar.ron @@ -165,7 +165,7 @@ Grammar( "ASSOC_TYPE_ARG", "PARAM_LIST", - "VALUE_PARAMETER", + "PARAM", "SELF_PARAM", "ARG_LIST", ] diff --git a/src/parser/grammar/params.rs b/src/parser/grammar/params.rs index 1ef2cea88..99fedfc21 100644 --- a/src/parser/grammar/params.rs +++ b/src/parser/grammar/params.rs @@ -37,7 +37,7 @@ fn value_parameter(p: &mut Parser, require_type: bool) { if p.at(COLON) || require_type { types::ascription(p) } - m.complete(p, VALUE_PARAMETER); + m.complete(p, PARAM); } // test self_param diff --git a/src/syntax_kinds/generated.rs b/src/syntax_kinds/generated.rs index 93a3250a4..2f7c29008 100644 --- a/src/syntax_kinds/generated.rs +++ b/src/syntax_kinds/generated.rs @@ -152,7 +152,7 @@ pub enum SyntaxKind { TYPE_ARG, ASSOC_TYPE_ARG, PARAM_LIST, - VALUE_PARAMETER, + PARAM, SELF_PARAM, ARG_LIST, // Technical SyntaxKinds: they appear temporally during parsing, @@ -314,7 +314,7 @@ impl SyntaxKind { TYPE_ARG => &SyntaxInfo { name: "TYPE_ARG" }, ASSOC_TYPE_ARG => &SyntaxInfo { name: "ASSOC_TYPE_ARG" }, PARAM_LIST => &SyntaxInfo { name: "PARAM_LIST" }, - VALUE_PARAMETER => &SyntaxInfo { name: "VALUE_PARAMETER" }, + PARAM => &SyntaxInfo { name: "PARAM" }, SELF_PARAM => &SyntaxInfo { name: "SELF_PARAM" }, ARG_LIST => &SyntaxInfo { name: "ARG_LIST" }, TOMBSTONE => &SyntaxInfo { name: "TOMBSTONE" }, -- cgit v1.2.3