示例#1
0
			public override object Visit (UsingTemporary usingTemporary)
			{
				var result = new UsingStatement ();
				var location = LocationsBag.GetLocations (usingTemporary);
				
				result.AddChild (new CSharpTokenNode (Convert (usingTemporary.loc), "using".Length), UsingStatement.Roles.Keyword);
				if (location != null)
					result.AddChild (new CSharpTokenNode (Convert (location[0]), 1), UsingStatement.Roles.LPar);
				
				result.AddChild ((INode)usingTemporary.Expr.Accept (this), UsingStatement.Roles.Initializer);
				
				if (location != null)
					result.AddChild (new CSharpTokenNode (Convert (location[1]), 1), UsingStatement.Roles.RPar);
				
				result.AddChild ((INode)usingTemporary.Statement.Accept (this), UsingStatement.Roles.EmbeddedStatement);
				return result;
			}
示例#2
0
		public virtual object Visit (UsingTemporary usingTemporaryStatement)
		{
			return null;
		}