コード例 #1
0
 /// <summary>
 /// Emits binding constructor and returns variable name
 /// </summary>
 protected ExpressionSyntax ProcessBinding(ResolvedBinding binding)
 {
     return(bindingCompiler.EmitCreateBinding(emitter, binding));
 }
コード例 #2
0
 /// <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) }));
 }