/// <summary> /// Creates a binding builder that builds the source of the pattern. /// </summary> /// <returns>Binding builder.</returns> public BindingBuilder Binding() { var builder = new BindingBuilder(Scope, Declaration.Type); _sourceBuilder = builder; return(builder); }
/// <summary> /// Creates a binding builder that builds the source of the pattern element. /// </summary> /// <returns>Binding builder.</returns> public BindingBuilder Binding() { var builder = new BindingBuilder(); builder.ResultType(Declaration.Type); _sourceBuilder = builder; return(builder); }
/// <summary> /// Sets a binding builder as the source of the pattern element. /// </summary> /// <param name="builder">Element builder to set as the source.</param> public void Binding(BindingBuilder builder) { AssertSingleSource(); builder.ResultType(Declaration.Type); _sourceBuilder = builder; }