Пример #1
0
 public CompileHint?GetHint(CompileHintType type)
 {
     for (int i = 0; i < this.m_compileHints.Count; i++)
     {
         if (this.m_compileHints[i].Type == type)
         {
             return(this.m_compileHints[i]);
         }
     }
     return(null);
 }
Пример #2
0
        public List <CompileHint> GetHints(CompileHintType type)
        {
            List <CompileHint> hints = new List <CompileHint>();

            for (int i = 0; i < this.m_compileHints.Count; i++)
            {
                if (this.m_compileHints[i].Type == type)
                {
                    hints.Add(this.m_compileHints[i]);
                }
            }
            return(hints);
        }
Пример #3
0
 public bool HasHint(CompileHintType type) => this.GetHint(type) is not null;
Пример #4
0
 public void AddCompilerHint(CompileHintType hintType, params object[] args)
 => this.m_compileHints.Add(new CompileHint(hintType, args));
Пример #5
0
 public CompileHint(CompileHintType type, params object[] hints)
 {
     this.Type = type;
     this.Args = hints;
 }