Ejemplo n.º 1
0
        public GeneratedCodeVisitor(SourceBuilder output, Dictionary<string, object> globalSymbols, NullBehaviour nullBehaviour)
        {
            _nullBehaviour = nullBehaviour;
            _source = output;

            _scope = new Scope(new Scope(null) { Variables = globalSymbols });
        }
Ejemplo n.º 2
0
        public GeneratedCodeVisitor(SourceWriter source, Dictionary<string, object> globalSymbols, NullBehaviour nullBehaviour)
        {
            _nullBehaviour = nullBehaviour;
            _source = source;

            _scope = new Scope(new Scope(null) { Variables = globalSymbols });
        }
Ejemplo n.º 3
0
        public GeneratedCodeVisitor(SourceWriter source, Dictionary <string, object> globalSymbols, NullBehaviour nullBehaviour)
        {
            _nullBehaviour = nullBehaviour;
            _source        = source;

            _scope = new Scope(new Scope(null)
            {
                Variables = globalSymbols
            });
        }
Ejemplo n.º 4
0
 public GlobalMembersVisitor(SourceWriter output, Dictionary <string, object> globalSymbols, NullBehaviour nullBehaviour)
 {
     _source        = output;
     _globalSymbols = globalSymbols;
     _nullBehaviour = nullBehaviour;
 }
Ejemplo n.º 5
0
 public SparkSettings SetNullBehaviour(NullBehaviour nullBehaviour)
 {
     NullBehaviour = nullBehaviour;
     return this;
 }
Ejemplo n.º 6
0
 public GlobalMembersVisitor(SourceWriter output, Dictionary<string, object> globalSymbols, NullBehaviour nullBehaviour)
 {
     _source = output;
     _globalSymbols = globalSymbols;
     _nullBehaviour = nullBehaviour;
 }
Ejemplo n.º 7
0
 public SparkSettings SetNullBehaviour(NullBehaviour nullBehaviour)
 {
     NullBehaviour = nullBehaviour;
     return(this);
 }
Ejemplo n.º 8
0
		/// <summary>
		/// Writes the field.
		/// </summary>
		/// <param name="fieldValue">The field value.</param>
		/// <param name="nullBehaviour">The null behaviour.</param>
		/// <returns></returns>
		public static object WriteField(
			object fieldValue,
			NullBehaviour nullBehaviour )
		{
			return WriteFieldObject(
				AdoNetOleDBParamCollection.ApplyNullBehaviourToValue(
				fieldValue,
				nullBehaviour ) );
		}