Example #1
0
        private void WriteMethodAttributes(IMethodSymbol methodSymbol, bool declarationWithingClass)
        {
            if (!declarationWithingClass)
            {
                return;
            }

            switch (methodSymbol.GetCallingConvention())
            {
            case CallingConvention.Winapi:
            case CallingConvention.StdCall:
                this.TextSpan("__stdcall");
                this.WhiteSpace();
                break;

            case CallingConvention.ThisCall:
                this.TextSpan("__thiscall");
                this.WhiteSpace();
                break;

            case CallingConvention.FastCall:
                this.TextSpan("__fastcall");
                this.WhiteSpace();
                break;
            }
        }