public SignatureEntry GetSignature(string sig, bool includePrivate = false) { if (includePrivate) { return(m_SignatureList.FirstOrDefault(e => e.Name == sig)); } return(Signatures.FirstOrDefault(e => e.Name == sig)); }
public FunctionSignature GetAcceptableSignature(int argCount) { FunctionSignature signature = Signatures.FirstOrDefault(x => x.ArgumentCount == argCount); if (signature == null) { signature = Signatures.FirstOrDefault(x => x.ArgumentCount == -1); } return(signature); }
public Signature GetById(int id) { // try to find the signature by the id return(Signatures.FirstOrDefault(s => s.Id == id)); }