Beispiel #1
0
 public virtual object VisitAttribute(ICSharpCode.NRefactory.Ast.Attribute attribute, object data)
 {
     throw new global::System.NotImplementedException("Attribute");
 }
Beispiel #2
0
	void Attribute(
#line  2544 "VBNET.ATG" 
out ASTAttribute attribute) {

#line  2545 "VBNET.ATG" 
		string name;
		List<Expression> positional = new List<Expression>();
		List<NamedArgumentExpression> named = new List<NamedArgumentExpression>();
		
		if (la.kind == 117) {
			lexer.NextToken();
			Expect(16);
		}
		Qualident(
#line  2550 "VBNET.ATG" 
out name);
		if (la.kind == 25) {
			AttributeArguments(
#line  2551 "VBNET.ATG" 
positional, named);
		}

#line  2553 "VBNET.ATG" 
		attribute  = new ASTAttribute(name, positional, named);
		
	}
Beispiel #3
0
	void Attribute(
#line  232 "cs.ATG" 
out ASTAttribute attribute) {

#line  233 "cs.ATG" 
		string qualident;
		string alias = null;
		

#line  237 "cs.ATG" 
		Location startPos = la.Location; 
		if (
#line  238 "cs.ATG" 
IdentAndDoubleColon()) {
			Identifier();

#line  239 "cs.ATG" 
			alias = t.val; 
			Expect(10);
		}
		Qualident(
#line  242 "cs.ATG" 
out qualident);

#line  243 "cs.ATG" 
		List<Expression> positional = new List<Expression>();
		List<NamedArgumentExpression> named = new List<NamedArgumentExpression>();
		string name = (alias != null && alias != "global") ? alias + "." + qualident : qualident;
		
		if (la.kind == 20) {
			AttributeArguments(
#line  247 "cs.ATG" 
positional, named);
		}

#line  248 "cs.ATG" 
		attribute = new ASTAttribute(name, positional, named); 
		attribute.StartLocation = startPos;
		attribute.EndLocation = t.EndLocation;
		
	}