void CheckKind(CallingConvention.LowerBits actual) { if (allowedKind != actual) { Errors.Add($"Expected {methodSigName} or {allowedKind} but found {actual}"); } }
public EitherSignature(string methodSigName, CallingConvention.LowerBits kind) { link = new Lazy <CodeNode>(ReadLink); this.methodSigName = methodSigName; this.allowedKind = kind; }