/// <summary> /// Emits binding constructor and returns variable name /// </summary> protected ExpressionSyntax ProcessBinding(ResolvedBinding binding) { return(bindingCompiler.EmitCreateBinding(emitter, binding)); }
/// <summary> /// Emits binding contructor and returns variable name /// </summary> protected ExpressionSyntax ProcessBinding(ResolvedBinding binding, Type expectedType) { //return emitter.EmitCreateObject(binding.Type, new object[] { binding.Value }); return(emitter.CreateObjectExpression(binding.BindingType, new[] { bindingCompiler.EmitCreateBinding(emitter, binding, bindingIdGenerator(binding), expectedType) })); }