C# Class Reinforced.Typings.Samples.Difficult.CodeGenerators.ReinforcedTypings.jQuery.JQueryActionCallGenerator

This is our code generator. Its purpose is to consume MethodInfo as source and produce RtFunction TypeScript AST node as result. We will inherit regular Method Code generator and slilghtly adjust its result for convinence.
Inheritance: MethodCodeGenerator
Mostra file Open project: reinforced/Reinforced.Typings

Public Methods

Method Description
GenerateNode ( MethodInfo element, RtFuncion result, TypeResolver resolver ) : RtFuncion

We override GenerateNode method (since it is almost single method of code generator).

Method Details

GenerateNode() public method

We override GenerateNode method (since it is almost single method of code generator).
public GenerateNode ( MethodInfo element, RtFuncion result, TypeResolver resolver ) : RtFuncion
element System.Reflection.MethodInfo Method of controller that we generate code for
result RtFuncion /// Resulting node - we do not have to create resulting node by ourselfs. /// But wi still can return null from GenerateNode method ///
resolver TypeResolver /// TypeResolver object that we will use to safely convert CLR types to TypeScript types names ///
return RtFuncion