Пример #1
0
	void Attribute(ref Attributes attrs) {
		IToken openBrace, colon, x, closeBrace;
		var args = new List<Expression>();
		
		Expect(46);
		openBrace = t; 
		Expect(21);
		colon = t; 
		NoUSIdent(out x);
		if (StartOf(9)) {
			Expressions(args);
		}
		Expect(47);
		closeBrace = t; 
		attrs = new UserSuppliedAttributes(x, openBrace, colon, closeBrace, args, attrs); 
	}
Пример #2
0
        void Attribute(ref Attributes attrs)
        {
            IToken openBrace, colon, closeBrace;
            IToken x = null;
            var args = new List<Expression>();
            x = null;

            Expect(50);
            openBrace = t;
            Expect(22);
            colon = t;
            ConvertKeywordTokenToIdent();
            NoUSIdent(out x);
            if (StartOf(10)) {
            Expressions(args);
            }
            Expect(51);
            closeBrace = t;
            attrs = new UserSuppliedAttributes(x, openBrace, colon, closeBrace, args, attrs);
        }