Beispiel #1
0
        private void ReadDeclaring(string source)
        {
            var reader = new CodeReader(source);

            if (reader.IsNextNonWhiteSpace("({"))
            {
                Attributes    = reader.ReadAttributes();
                DeclaringType = DeclaringType.Attributes;
            }
            else if (reader.IsNextNonWhiteSpace('('))
            {
                Parameters    = reader.ReadParameters();
                DeclaringType = DeclaringType.Parameters;
            }
            else
            {
                Declare       = source;
                DeclaringType = DeclaringType.Declare;
            }
        }