Beispiel #1
0
 ICommentOperationOrRowSelector ISourceSelector.With(TomlTable source)
 {
     this.source = source;
     return(this);
 }
Beispiel #2
0
 public static TomlTable Add(
     this TomlTable table, string key, object obj, TomlTable.TableTypes tableType = TomlTable.TableTypes.Default)
 {
     return(AddTomlObjectInternal(table, key, TomlTable.CreateFromComplexObject(table.Root, obj, tableType)));
 }
Beispiel #3
0
 // Values
 public static TomlBool Add(this TomlTable table, string key, bool value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Beispiel #4
0
 public static TomlDuration Add(this TomlTable table, string key, TimeSpan value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Beispiel #5
0
 public static TomlArray Add(this TomlTable table, string key, IEnumerable <TimeSpan> values)
 => AddTomlObjectInternal(table, key, table.CreateAttached(values));
Beispiel #6
0
 public void Add(TomlTable table)
 {
     this.items.Add(table);
 }
Beispiel #7
0
 public static TomlFloat Add(this TomlTable table, string key, float value)
 => AddTomlObjectInternal(table, key, table.CreateAttached((double)value));
 internal Result(TomlTable owner, T added)
 {
     this.owner = owner;
     this.added = added;
 }
 public static Result <TomlInt> Update(this TomlTable table, string key, long value)
 => Update(table, key, table.CreateAttached(value));
Beispiel #10
0
 public static void WriteFile(TomlTable table, string filePath, TomlSettings settings) =>
 WriteFileInternal(table, filePath, settings);
Beispiel #11
0
 public static void WriteStream(TomlTable table, Stream outStream) =>
 WriteStreamInternal(table, outStream);
Beispiel #12
0
 public static void WriteFile(TomlTable table, string filePath) =>
 WriteFileInternal(table, filePath, TomlSettings.DefaultInstance);
 public void Visit(TomlTable table) => Debug.Assert(false);
Beispiel #14
0
 public OverwriteSourceOnlyRowsOperation(TomlTable target, TomlTable source, CommentsOp commentsOp)
     : base(target, source, commentsOp)
 {
 }
Beispiel #15
0
 public static Result <TomlFloat> Add(this TomlTable table, string key, double value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Beispiel #16
0
 public static Result <TomlFloat> Update(this TomlTable table, string key, double value)
 => Update(table, key, table.CreateAttached(value));
Beispiel #17
0
 public static Result <TomlArray> Add(this TomlTable table, string key, IEnumerable <float> array)
 => AddTomlObjectInternal(table, key, table.CreateAttached(array));
Beispiel #18
0
 public static Result <TomlOffsetDateTime> Update(this TomlTable table, string key, DateTimeOffset value)
 => Update(table, key, table.CreateAttached(value));
Beispiel #19
0
 public static TomlInt Add(this TomlTable table, string key, int value)
 => AddTomlObjectInternal(table, key, table.CreateAttached((long)value));
Beispiel #20
0
 public static Result <TomlDuration> Update(this TomlTable table, string key, TimeSpan value)
 => Update(table, key, table.CreateAttached(value));
Beispiel #21
0
 public static TomlOffsetDateTime Add(this TomlTable table, string key, DateTimeOffset value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Beispiel #22
0
 // Table
 public static Result <TomlTable> Update <T>(
     this TomlTable table,
     string key,
     IDictionary <string, T> tableData,
     TomlTable.TableTypes type = TomlTable.TableTypes.Default)
 => Update(table, key, CreateAttached(table, tableData, type));
Beispiel #23
0
 public static TomlArray Add(this TomlTable table, string key, IEnumerable <DateTime> array)
 => AddTomlObjectInternal(table, key, table.CreateAttached(array));
Beispiel #24
0
 public static Result <TomlTable> Update(
     this TomlTable table, string key, object obj, TomlTable.TableTypes type = TomlTable.TableTypes.Default)
 => Update(table, key, CreateAttached(table, obj, type));
Beispiel #25
0
 // Table
 public static TomlTable Add <T>(
     this TomlTable table,
     string key,
     IDictionary <string, T> tableData,
     TomlTable.TableTypes tableType = TomlTable.TableTypes.Default)
 => AddTomlObjectInternal(table, key, CreateAttached(table, tableData, tableType));
Beispiel #26
0
 public static Result <TomlArray> Update(this TomlTable table, string key, IEnumerable <TimeSpan> array)
 => Update(table, key, table.CreateAttached(array));
Beispiel #27
0
#pragma warning disable SA1313 // Parameter names must begin with lower-case letter
        public static T Add <T>(
            this TomlTable table, string key, T obj, RequireTomlObject <T> _ = null)
            where T : TomlObject
        => AddTomlObjectInternal(table, key, obj.Root == table.Root ? obj : (T)obj.CloneFor(table.Root));
Beispiel #28
0
 // Values
 public static Result <TomlBool> Update(this TomlTable table, string key, bool value)
 => Update(table, key, table.CreateAttached(value));
Beispiel #29
0
 public static TomlArray AddArray(this TomlTable table, string key, IEnumerable <TimeSpan> values)
 => table.AddArray(key, table.CreateAttachedArray(values));
Beispiel #30
0
 public OverwriteTableOperationBuilder(TomlTable target)
 {
     this.target = target;
 }