public override object Visit(LabelStatement labelStatement, object data)
 {
     return null;
 }
 public object Visit(LabelStatement labelStatement, object data)
 {
     DebugOutput(labelStatement);
     AppendIndentation();
     sourceText.Append(labelStatement.Label);
     sourceText.Append(":");
     AppendNewLine();
     if (labelStatement.EmbeddedStatement != null) {
         labelStatement.EmbeddedStatement.AcceptVisitor(this, data);
     }
     return null;
 }
예제 #3
0
	void Statement() {

#line  2023 "VBNET.ATG" 
		Statement stmt;
		string label = String.Empty;
		
		
		if (
#line  2027 "VBNET.ATG" 
IsLabel()) {
			LabelName(
#line  2027 "VBNET.ATG" 
out label);

#line  2029 "VBNET.ATG" 
			labelStatement = new LabelStatement(t.val);
			compilationUnit.AddChild(labelStatement);
			
			Expect(13);
			if (StartOf(15)) {

#line  2032 "VBNET.ATG" 
				isLabel = true; 
				Statement();
			}
		} else if (StartOf(27)) {
			EmbeddedStatement(
#line  2033 "VBNET.ATG" 
out stmt);

#line  2033 "VBNET.ATG" 
			updateLabelStatement(stmt); 
		} else if (StartOf(28)) {
			LocalDeclarationStatement(
#line  2034 "VBNET.ATG" 
out stmt);

#line  2034 "VBNET.ATG" 
			updateLabelStatement(stmt); 
		} else SynErr(227);
	}
 public virtual object Visit(LabelStatement labelStatement, object data)
 {
     if (labelStatement.EmbeddedStatement == null) {
         return null;
     }
     return labelStatement.EmbeddedStatement.AcceptVisitor(this, data);
 }