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); }
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); }
public bool HasHint(CompileHintType type) => this.GetHint(type) is not null;
public void AddCompilerHint(CompileHintType hintType, params object[] args) => this.m_compileHints.Add(new CompileHint(hintType, args));
public CompileHint(CompileHintType type, params object[] hints) { this.Type = type; this.Args = hints; }