Commit Graph
681 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 38c43d342e 2003-09-21 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs: small fix needed when reading big POST
	data.
	* System.Web.Compilation/CachingCompiler.cs: nothing interesting.
	* System.Web.UI/SimpleWebHandlerParser.cs: add the ashx/asmx file
	itself to the dependencies so that it's recompiled when changed.

svn path=/trunk/mcs/; revision=18237
2003-09-21 03:37:27 +00:00
Gonzalo Paniagua Javier 5e1e0c3340 2003-09-19 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: fixed bug #48212.

svn path=/trunk/mcs/; revision=18185
2003-09-19 07:05:11 +00:00
Gonzalo Paniagua Javier 7f56b5df43 2003-09-18 Gonzalo Paniagua Javier <[email protected]>
* WebServiceCompiler.cs: remove the temporary files here too.

svn path=/trunk/mcs/; revision=18173
2003-09-18 18:12:18 +00:00
Gonzalo Paniagua Javier 213c1f706e 2003-08-03 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: fixed bug #46429.

svn path=/trunk/mcs/; revision=17023
2003-08-03 17:01:27 +00:00
Gonzalo Paniagua Javier 21c46d96a3 2003-08-01 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources: added WebHandlerParser.cs

	* System.Web.Compilation/Directive.cs: support @WebHandler.

	* System.Web.UI/SimpleHandlerFactory.cs: implemented GetHandler.
	* System.Web.UI/WebHandlerParser.cs: new file that parses .ashx files.

svn path=/trunk/mcs/; revision=16971
2003-08-01 01:09:32 +00:00
Gonzalo Paniagua Javier eb16387133 2003-07-16 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: support string []. Fixes bug #46415.

svn path=/trunk/mcs/; revision=16285
2003-07-16 03:29:58 +00:00
Gonzalo Paniagua Javier df3cd55444 2003-07-08 Gonzalo Paniagua Javier <[email protected]>
* BaseCompiler.cs: first look for cached items, then generate the tree.
	This should speed things up.

	* CachingCompiler.cs: when compiling web services, use the full path of
	the .asmx file as key when caching.

	* WebServiceCompiler.cs: first look for cached items, then generate
	the source file.

svn path=/trunk/mcs/; revision=16045
2003-07-08 18:57:57 +00:00
Gonzalo Paniagua Javier b65f52da22 class status fixes
svn path=/trunk/mcs/; revision=16035
2003-07-08 09:37:18 +00:00
Gonzalo Paniagua Javier 58730d5c6e 2003-07-04 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: more useful error information,

	* BaseCompiler.cs:
	* CachingCompiler.cs: honor the debug="true" option.

	* TemplateControlCompiler.cs: small fixes for templates.

svn path=/trunk/mcs/; revision=15907
2003-07-04 00:43:07 +00:00
Gonzalo Paniagua Javier 9faf111c11 2003-07-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/BaseCompiler.cs: made Compiler property
	virtual.

	* System.Web.Compilation/CachingCompiler.cs: added support for compiling
	web services.

	* System.Web.Compilation/WebServiceCompiler.cs: implemented.

	* System.Web.UI/SimpleWebHandlerParser.cs: updated to new compilation
	interface.

	* System.Web.UI/TemplateParser.cs: use the new parameter when compiling.

svn path=/trunk/mcs/; revision=15892
2003-07-03 17:50:51 +00:00
Gonzalo Paniagua Javier 7247844c56 2003-05-22 Gonzalo Paniagua Javier <[email protected]>
* CachingCompiler.cs: fixed bug #43477.

svn path=/trunk/mcs/; revision=14793
2003-05-22 11:20:20 +00:00
Gonzalo Paniagua Javier bb14252e09 2003-05-22 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs:
	* AspTokenizer.cs: fixed bugs #43206 and #43371.

svn path=/trunk/mcs/; revision=14781
2003-05-21 23:27:12 +00:00
Gonzalo Paniagua Javier 8a0ad928cb 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
	of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
	reporting.

svn path=/trunk/mcs/; revision=14448
2003-05-10 09:52:59 +00:00
Gonzalo Paniagua Javier 07f42cdd98 2003-05-06 Gonzalo Paniagua Javier <[email protected]>
* CompilationException.cs: don't add duplicated lines in the case that
	mcs reports several errors for the same one.

svn path=/trunk/mcs/; revision=14344
2003-05-06 19:11:55 +00:00
Gonzalo Paniagua Javier 44e72453ac 2003-05-06 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpException.cs: encode as HTML the inner exception that
	is appended as a comment at the end of error pages.

	* System.Web.Compilation/AspGenerator.cs: fully support including files,
	ie., treat them just as C treats #includes.

	* System.Web.UI/RootBuilder.cs: throw exception when the tagprefix
	is not valid or not found.

svn path=/trunk/mcs/; revision=14316
2003-05-06 01:31:40 +00:00
Gonzalo Paniagua Javier 4af0c80ce6 CompilerParameters.ReferencedAssemblies do not have a set accessor
svn path=/trunk/mcs/; revision=14280
2003-05-04 23:51:16 +00:00
Gonzalo Paniagua Javier a08b0012ec 2003-05-04 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspGenerator.cs:
	* System.Web.Compilation/AspParser.cs:
	* System.Web.Compilation/TagType.cs:
	* System.Web.UI/TemplateParser.cs: Added support for server side
	includes.

svn path=/trunk/mcs/; revision=14242
2003-05-04 02:50:04 +00:00
Gonzalo Paniagua Javier df578562f2 2003-05-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/CSCompiler.cs: actually add the list of
	referenced assemblies to the compiler options. Throw a
	CompilationException if there's an error.

	* System.Web.Compilation/CachingCompiler.cs: added a method to compile
	directly from a source file.

	* System.Web.UI/TemplateControl.cs: fixed the flags used to find the
	methods that are automatically hooked up on events.

	* System.Web.UI/TemplateParser.cs: don't compile a source file directly.
	Use the cache instead.

svn path=/trunk/mcs/; revision=14231
2003-05-03 13:50:08 +00:00
Gonzalo Paniagua Javier a3e7d18173 2003-05-01 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HtmlizedException.cs: added more virtual methods.

	* System.Web/HttpException.cs:  some work on the output when there's
	a source file present.

	* System.Web.Compilation/AspGenerator.cs: copy the location before
	setting the value for the control builders.

	* System.Web.Compilation/BaseCompiler.cs: changed parameters for
	CompilationException.

	* System.Web.Compilation/CompilationException.cs: it takes now line
	numbers and error descriptions from the CompilerErrorCollection.

	* System.Web.Compilation/Location.cs: used when a copy of an ILocation
	is needed.

	* System.Web.Compilation/ParseException.cs: implemented new methods
	to provide line numbers and souce file.

	* System.Web.Compilation/TemplateControlCompiler.cs: throw a
	ParseException where appropiate.

	* System.Web.UI/BaseParser.cs: Location property is now here. Added a
	couple of convenience methods to throw a ParseException.

	* System.Web.UI/TemplateParser.cs:
	* System.Web.UI/TemplateControlParser.cs:
	* System.Web.UI/PageParser.cs: throw ParseException where appropiate.

svn path=/trunk/mcs/; revision=14191
2003-05-01 19:34:32 +00:00
Gonzalo Paniagua Javier ce55913aed 2003-05-01 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspGenerator.cs: also support data bind syntax
	inside tags not processed as controls. Added debugging method.

	* System.Web.Compilation/TemplateControlCompiler.cs: reset the number
	of data binding handlers in the proper place. Small fix when getting the
	container type.

	* System.Web.UI/ApplicationFileParser.cs: use the generator to actually
	parse the file.

	* System.Web.UI/ControlBuilder.cs: small fix in NamingContainerType
	because TemplateBuilders have a null ControlType. When a control is
	appended to a parent, assign the child's parent.

	* System.Web.UI/UserControlParser.cs: fixed the value of InputFile.

	IBuySpy works again!

svn path=/trunk/mcs/; revision=14170
2003-05-01 00:54:04 +00:00
Gonzalo Paniagua Javier 201982bea9 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/TemplateControlCompiler.cs: correctly set
	the TemplateSourceDirectory value.

	* System.Web.UI/ApplicationFileParser.cs: store the Context and
	override BaseVirtualDir so that it's the application path.

	* System.Web.UI/BaseParser.cs: removed CurrentVirtualPath property.

	* System.Web.UI/TemplateControlParser.cs: use BaseVirtualDir.

	* System.Web.UI/UserControlParser.cs: removed CurrentVirtualPath.

svn path=/trunk/mcs/; revision=14168
2003-04-30 20:07:26 +00:00
Gonzalo Paniagua Javier b25312c41b 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: handle code render syntax in tag attributes.

	* AspParser.cs: the constructor now takes a TextReader.

	* TemplateControlCompiler.cs: removed comment.

svn path=/trunk/mcs/; revision=14166
2003-04-30 19:42:58 +00:00
Gonzalo Paniagua Javier 38a3d0f4af 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: added support for data bound properties.

svn path=/trunk/mcs/; revision=14164
2003-04-30 16:52:45 +00:00
Gonzalo Paniagua Javier e80814a23c 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
* AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
	instead of their names.

	* AspElements.cs: removed. No longer needed.

	* AspGenerator.cs: this file is now in charge of interfacing between
	the parser and the compiler. It manages the creation of the
	ControlBuilder tree and the compilation of the CodeDOM tree.

	* AspParser.cs: tag handling is simpler now.  Instead of a whole bunch
	of different Types, tags are just and id and a set of attributes.
	Implement ILocation interface.

	* AspTokenizer.cs: added a few methods to help the parser implementing
	ILocation.

	* BaseCompiler.cs: handles the portions of the CodeDOM tree that are
	common to appliaction, page and user control, including the actual
	compilation and error handling.

	* CSCompiler.cs: compiles C# files using CodeDOM interfaces.

	* CachingCompiler.cs: simplified to use the new interfaces.

	* CompilationException.cs: it's now using CompilationResult to report
	errors.

	* CompilationResult.cs: Removed file.

	* Directive.cs: to check for the validity of a directive.

	* GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
	in BaseCompiler.

	* ILocation.cs: interface used to now the exact place where a parse
	error happens.

	* PageCompiler.cs: generates a couple of methods that are only used in
	pages.

	* ParseException.cs: use the ILocation interface.

	* TagAttributes.cs: handles the attributes of the tags parsed.

	* TagType.cs: an enum for the different kinds of tags.

	* TemplateControlCompiler.cs: this is the one that does most of the
	conversion from teh ControlBuilder tree into a CodeDOM tree.

	* UserControlCompiler.cs: simplified as most of the work is done in
	its base classes.

	* WebServiceCompiler.cs: dummy.

svn path=/trunk/mcs/; revision=14140
2003-04-30 04:56:01 +00:00
Gonzalo Paniagua Javier 139868e0c8 2003-04-20 Gonzalo Paniagua Javier <[email protected]>
* list: sorted, added a couple of missing files and 3 new ones.
	* System.Web.Compilation/AspComponentFoundry.cs: added GetComponentType
	method.
	* System.Web.UI/ITagNameToTypeMapper.cs: made it internal.

	* System.Web.UI/ObjectTagBuilder.cs: builder for
	<object runat="server"> tag.
	* System.Web.UI/ObjectTag.cs:
	* System.Web.UI/RootBuilder.cs: initial builder.

svn path=/trunk/mcs/; revision=13823
2003-04-20 15:25:58 +00:00
Gonzalo Paniagua Javier 581122d879 2003-03-28 Gonzalo Paniagua Javier <[email protected]>
* AspTokenizer.cs: allow quotes inside server tags that are part of
	attribute values.

	* CachingCompiler.cs: no more 'FileNotFound' exceptions when the
	compilation fails.

svn path=/trunk/mcs/; revision=12877
2003-03-27 23:14:36 +00:00
Gonzalo Paniagua Javier abebeaccec 2003-03-27 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: generate correct appbase path. It was working with
	mcs but not with csc.

	* BaseCompiler.cs: quote arguments and removed GetRandomFileName.

	* CachingCompiler.cs: quote source file.

svn path=/trunk/mcs/; revision=12862
2003-03-27 03:44:38 +00:00
Gonzalo Paniagua Javier a4b711d273 2003-03-26 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: now the Inherits attribute works as expected for
	global.asax file.

svn path=/trunk/mcs/; revision=12852
2003-03-26 16:34:54 +00:00
Gonzalo Paniagua Javier 0bd263fbfb 2003-03-24 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HtmlizedException.cs:
	* System.Web/HttpException.cs:
	* System.Web.Compilation/CompilationException.cs:
	* System.Web.Compilation/ParseException.cs: display the correct line
	number in error messages.

	* System.Web.Compilation/AspElements.cs: added TargetSchema attribute
	for control. It's ignored.

svn path=/trunk/mcs/; revision=12782
2003-03-24 17:00:49 +00:00
Gonzalo Paniagua Javier 5a9b3f32ee fixed the comment and the build
svn path=/trunk/mcs/; revision=12661
2003-03-18 19:17:48 +00:00
Gonzalo Paniagua Javier fd44dd8e57 2003-03-17 Gonzalo Paniagua Javier <[email protected]>
* BaseCompiler.cs: fixed the hack to work under windows.
	* CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.

svn path=/trunk/mcs/; revision=12659
2003-03-18 17:25:19 +00:00
Gonzalo Paniagua Javier d998599482 2003-03-17 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/BaseCompiler.cs:
	* System.Web.Hosting/AppDomainFactory.cs: hacks to work-around our
	buggy System.Uri.

svn path=/trunk/mcs/; revision=12631
2003-03-17 18:34:29 +00:00
Gonzalo Paniagua Javier a657f38d93 Fixes by George Kodinov <[email protected]>
svn path=/trunk/mcs/; revision=12629
2003-03-17 18:05:20 +00:00
Miguel de Icaza eadff8e5ac Small improvement
svn path=/trunk/mcs/; revision=12454
2003-03-12 05:18:06 +00:00
Miguel de Icaza 30c5052e18 2003-03-10 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs:

svn path=/trunk/mcs/; revision=12453
2003-03-12 05:03:09 +00:00
Gonzalo Paniagua Javier 3f3247b3ee 2003-03-10 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs:
	* BaseCompiler.cs:
	* CachingCompiler.cs:
	* CompilationResult.cs:
	* GlobalAsaxCompiler.cs:
	* PageCompiler.cs:
	* UserControlCompiler.cs: recompile the page if dependencies change.

svn path=/trunk/mcs/; revision=12401
2003-03-10 06:41:26 +00:00
Gonzalo Paniagua Javier 4bf7143482 2003-02-15 Gonzalo Paniagua Javier <[email protected]>
* list: forgot to add this one.

	* System.Web.Compilation/AspGenerator.cs: corrected typo and wrong fix.

	* System.Web.UI/Control.cs: have i definitely fixed naming container
	stuff this time?

	* System.Web.UI/LosFormatter.cs: activated binary serialization code.

	* System.Web.UI.WebControls/ButtonColumn.cs: fixed a couple of infinite
	loop problems and render correctly the header of the column.

	* System.Web.UI.WebControls/DataGridTableInternal.cs: don't assign a
	default ID to this control.

	* System.Web.UI.WebControls/LinkButton.cs: raise bubble event in
	OnCommand.

	* System.Web.UI.WebControls/TableCellCollection.cs: fixed the index
	returned by Add.

	* System.Web.UI.WebControls/TableRowCollection.cs: ditto.

svn path=/trunk/mcs/; revision=11601
2003-02-15 04:08:30 +00:00
Gonzalo Paniagua Javier 20dbf7a0d0 2003-02-14 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
	when used explicitly.

svn path=/trunk/mcs/; revision=11568
2003-02-14 03:20:04 +00:00
Gonzalo Paniagua Javier 30be3866c8 2003-02-13 Gonzalo Paniagua Javier <[email protected]>
* AspElements.cs: get the property Type for controls that use
	ParseChildren with a property name.

	* AspGenerator.cs: generate correct signature for the method that
	adds controls to the default property in ParseChildren.

svn path=/trunk/mcs/; revision=11552
2003-02-13 16:22:35 +00:00
Gonzalo Paniagua Javier 1259587222 No comments.
svn path=/trunk/mcs/; revision=11487
2003-02-11 16:49:21 +00:00
Gonzalo Paniagua Javier bc2ec9054b 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: rethrow exceptions that may can from parsing or
	compilation if a user control.

svn path=/trunk/mcs/; revision=11486
2003-02-11 16:37:57 +00:00
Gonzalo Paniagua Javier 216bec00c9 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
* list: added a couple of new files.
	* System.Web/HtmlizedException.cs: base class for exceptions that makes
	it easy to generate error pages.

	* System.Web/HttpException.cs: improved error displaying.

	* System.Web/HttpRuntime.cs: removed debugging output.

	* System.Web.Compilation/AspGenerator.cs: throw ParseException on parse
	error.

	* System.Web.Compilation/AspParser.cs: added Line and Column props.

	* System.Web.Compilation/CompilationException.cs: derives now from
	HtmlizedException.

	* System.Web.Compilation/CompilationResult.cs: added fileName field.
	Fixed set_ExitCode.

	* System.Web.Compilation/GlobalAsaxCompiler.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/UserControlCompiler.cs: pass the file name in
	the CompilationResult.

	* System.Web.Compilation/ParseException.cs: new exception.

svn path=/trunk/mcs/; revision=11467
2003-02-11 05:04:30 +00:00
Gonzalo Paniagua Javier 602b47f906 2003-02-05 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: remove "file://" from the private bin path. Fixes
	bug #37628.

svn path=/trunk/mcs/; revision=11230
2003-02-05 03:49:19 +00:00
Gonzalo Paniagua Javier 3444afed80 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspParser.cs: the parser fires events when it
	parses an element.

	* System.Web.UI/SimpleWebHandlerParser.cs:
	* System.Web.Compilation/GlobalAsaxCompiler.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/UserControlCompiler.cs:
	* System.Web.Compilation/AspElements.cs: modified to use the new parser
	interface.

	* System.Web.Compilation/AspGenerator.cs: modified to use the new
	parser. Merge multiple text strings into one single LiteralControl.

	* System.Web.Compilation/AspTokenizer.cs: added Line and Column properties.

svn path=/trunk/mcs/; revision=11146
2003-02-03 02:25:00 +00:00
Gonzalo Paniagua Javier 9e41b7ec74 forgot this
svn path=/trunk/mcs/; revision=10881
2003-01-24 20:24:24 +00:00
Gonzalo Paniagua Javier cf13915eb7 2003-01-24 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: fixed bug #36929.

svn path=/trunk/mcs/; revision=10854
2003-01-24 02:06:35 +00:00
Gonzalo Paniagua Javier d127318010 2003-01-21 Tim Haynes <[email protected]>
* AspGenerator.cs:
	* BaseCompiler.cs:
	* CachingCompiler.cs: changes to work around spaces and
        directory-separators in the local filesystem.

svn path=/trunk/mcs/; revision=10780
2003-01-21 18:44:21 +00:00
Gonzalo Paniagua Javier 81f764072e 2003-01-20 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: make the generated file compile with csc after last
	change.

svn path=/trunk/mcs/; revision=10736
2003-01-20 17:57:55 +00:00
Gonzalo Paniagua Javier 26bab89059 2003-01-20 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspGenerator.cs: removed unused variable. Added
	support for properties/fields of type string [].

	* System.Web.UI.WebControls/DataList.cs: handle the exception when
	adding new keys to DataKeysArray.

svn path=/trunk/mcs/; revision=10734
2003-01-20 15:03:32 +00:00
Gonzalo Paniagua Javier f066941cc3 2003-01-16 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: modified loading of the parent type now that
	Type.GetType is fixed.

svn path=/trunk/mcs/; revision=10568
2003-01-16 07:11:58 +00:00