Boo.Lang.Compiler.Steps.EmitAssembly.GetConditionalSymbols C# (CSharp) Метод

GetConditionalSymbols() приватный Метод

private GetConditionalSymbols ( Boo.Lang.Compiler.TypeSystem.InternalMethod method ) : IEnumerable
method Boo.Lang.Compiler.TypeSystem.InternalMethod
Результат IEnumerable
        private IEnumerable<string> GetConditionalSymbols(InternalMethod method)
        {
            foreach (var attr in MetadataUtil.GetCustomAttributes(method.Method, TypeSystemServices.ConditionalAttribute))
            {
                if (1 != attr.Arguments.Count) continue;

                var conditionString = attr.Arguments[0] as StringLiteralExpression;
                if (conditionString == null) continue;

                yield return conditionString.Value;
            }
        }

Same methods

EmitAssembly::GetConditionalSymbols ( ExternalMethod method ) : IEnumerable
EmitAssembly::GetConditionalSymbols ( IMethod method ) : IEnumerable
EmitAssembly