public override ParameterSignature GetReturnParameterSignature(ScriptParserGenerator generator) { switch (_literal.Type) { case GeneratorLexType.Terminal: return(new ParameterSignature(generator.GetTerminalName(this.InnerWord), generator.Settings.InputClass)); case GeneratorLexType.Nonterminal: return(new ParameterSignature(ScriptParserGenerator.ConvertCase(this.InnerWord, generator.Settings.NonterminalCaseConversion), generator.GetReturnClassIdentifier(this.InnerWord))); default: throw new NotSupportedException(); } }