internal void MarkAsUsed(Symbol key)
 {
     if (optionalColumnUsage.ContainsKey(key))
     {
         optionalColumnUsage[key].Value = true;
     }
 }
 internal void Add(Symbol sourceSymbol, Symbol symbolToAdd)
 {
     BoolWrapper wrapper;
     if (sourceSymbol == null
         || !optionalColumnUsage.TryGetValue(sourceSymbol, out wrapper))
     {
         wrapper = new BoolWrapper();
     }
     optionalColumnUsage.Add(symbolToAdd, wrapper);
 }
        internal bool TryGetValue(Symbol key, out bool value)
        {
            BoolWrapper wrapper;
            if (optionalColumnUsage.TryGetValue(key, out wrapper))
            {
                value = wrapper.Value;
                return true;
            }

            value = false;
            return false;
        }
예제 #4
0
 public SymbolPair(Symbol source, Symbol column)
 {
     Source = source;
     Column = column;
 }
 internal bool IsUsed(Symbol key)
 {
     return optionalColumnUsage[key].Value;
 }
 internal bool ContainsKey(Symbol key)
 {
     return optionalColumnUsage.ContainsKey(key);
 }
예제 #7
0
 internal void Add(string name, Symbol value)
 {
     symbols[symbols.Count - 1][name] = value;
 }