コード例 #1
0
 public virtual object Visit(GotoDefault gotoDefault)
 {
     return(null);
 }
コード例 #2
0
ファイル: cs-parser.cs プロジェクト: furesoft/NRefactory
void case_975()
#line 6492 "cs-parser.jay"
{
		yyVal = new GotoDefault (GetLocation (yyVals[-2+yyTop]));
		lbag.AddStatement (yyVal, GetLocation (yyVals[-1+yyTop]), GetLocation (yyVals[0+yyTop]));
	  }
コード例 #3
0
			public override object Visit (GotoDefault gotoDefault)
			{
				var result = new GotoDefaultStatement ();
				result.AddChild (new CSharpTokenNode (Convert (gotoDefault.loc), GotoDefaultStatement.GotoKeywordRole), GotoDefaultStatement.GotoKeywordRole);
				var location = LocationsBag.GetLocations (gotoDefault);
				if (location != null) {
					result.AddChild (new CSharpTokenNode (Convert (location [0]), GotoDefaultStatement.DefaultKeywordRole), GotoDefaultStatement.DefaultKeywordRole);
					if (location.Count > 1)
						result.AddChild (new CSharpTokenNode (Convert (location [1]), Roles.Semicolon), Roles.Semicolon);
				}
				
				return result;
			}
コード例 #4
0
ファイル: visit.cs プロジェクト: furesoft/NRefactory
		public virtual object Visit (GotoDefault gotoDefault)
		{
			return null;
		}