Example #1
0
 public void AddDefine(string define)
 {
     Refresh();
     if (!m_definesDict.ContainsKey(define))
     {
         PropertyDataCollector data = new PropertyDataCollector(-1, define);
         m_definesDict.Add(define, data);
         m_definesList.Add(data);
     }
 }
 public void AddDefine(string define, bool temporary)
 {
     Refresh();
     if (!m_definesDict.ContainsKey(define))
     {
         int nodeId = temporary ? 1 : 0;
         PropertyDataCollector data = new PropertyDataCollector(nodeId, define);
         m_definesDict.Add(define, data);
         m_definesList.Add(data);
     }
 }
 public void AddDirective(string directive, bool temporary, bool isPragma = false)
 {
     Refresh();
     if (!m_directivesDict.ContainsKey(directive))
     {
         int nodeId = temporary ? 1 : 0;
         PropertyDataCollector data = new PropertyDataCollector(nodeId, directive, -1, isPragma);
         m_directivesDict.Add(directive, data);
         m_directivesList.Add(data);
     }
 }