Commit Graph
56 Commits
Author SHA1 Message Date
Marek Habersack 1fcd4ba60d 2007-06-09 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: TemplateControl is assigned for
	controls that are placed within ContentPlaceHolder and not for the
	ContentPlaceHolder itself.
	No longer add the overriden version of TemplateSourceDirectory to
	the generated source, all the work is now done in
	Control.TemplateSourceDirectory.

	* BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
	slash, for compatibility with MS.NET

2007-06-09  Marek Habersack  <[email protected]>

	* TemplateControl.cs: make sure TemplateControl is set to the
	current control.

	* Control.cs: TemplateControl property goes up the parent chain if
	the property isn't defined in the current control.
	TemplateSourceDir finally implemented correctly.

2007-06-09  Marek Habersack  <[email protected]>

	* ControlTest.cs: enabled two tests that hadn't been working
	before.


svn path=/trunk/mcs/; revision=79021
2007-06-08 23:51:23 +00:00
Marek Habersack 95c61dae1b 2007-04-19 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: yet another method of detecting if we have a
	custom profile.

	* BaseCompiler.cs: as above
	
	* AspComponentFoundry.cs: implemented delayed loading of control
	assemblies. Fixes bug #81058.

svn path=/trunk/mcs/; revision=75910
2007-04-19 08:04:38 +00:00
Gert Driesen 45616d6c5f * TemplateParser.cs: On 2.0 profile, allow namespace in ClassName
attribute. Fixed part of bug #81399.
* BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
then use it instead of the default ASP namespace. Fixes part of bug
#81399.

svn path=/trunk/mcs/; revision=75909
2007-04-19 07:33:02 +00:00
Marek Habersack a8d18c9fd5 2007-04-19 Marek Habersack <[email protected]>
* BaseCompiler.cs: don't look at the number of profile properties
	when deciding if we have a custom profile. It is possible to have
	a profile that just inherits from a base class and does not list
	any custom properties. Fixes bug #81396.

	* AppCodeCompiler.cs: as above

svn path=/trunk/mcs/; revision=75908
2007-04-19 07:17:47 +00:00
Marek Habersack cef141fb0d fix compilation for 1.1
svn path=/trunk/mcs/; revision=75483
2007-04-06 14:04:42 +00:00
Marek Habersack 0fe038646e 2007-04-06 Marek Habersack <[email protected]>
* BaseCompiler.cs: display the source of the file in which the
	error actually happened if the file exists, or the unit
	otherwise.

svn path=/trunk/mcs/; revision=75482
2007-04-06 13:01:59 +00:00
Marek Habersack 0fb47feff6 2007-03-21 Marek Habersack <[email protected]>
* TemplateParser.cs: Added support for the CodeFileBaseClass directive. Fixes bug #81132

2007-03-21  Marek Habersack  <[email protected]>

	* BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
	AssignAppRelativeVirtualPath if the attribute was defined.

svn path=/trunk/mcs/; revision=74764
2007-03-21 21:14:03 +00:00
Marek Habersack fba0cc826e 2007-03-13 Marek Habersack <[email protected]>
* TemplateParser.cs: name generated classes the same way MS.NET
	does - include the app-relative path to the control/page in the
	class name.
	* PageCompiler.cs: interfaces are to be implemented by the parent
	partial class, not the generated one.
	* TemplateControlCompiler.cs:
	Put field declarations for controls in the partial class.
	* BaseCompiler.cs:
	Change the generated code model for pages/controls to comply with
	the way MS.NET does (partial class contains only two properties
	plus declarations of all the controls, the actual control/page
	class inherits from the partial class). Fixes bug #81001.


svn path=/trunk/mcs/; revision=74167
2007-03-13 13:11:04 +00:00
Marek Habersack 095b2a7004 2007-03-13 Marek Habersack <[email protected]>
* AppResourceFilesCollection.cs: added separate constructor for
        local resources handling.

        * TemplateControlCompiler.cs: request the local resource object
        with proper virtual path.

        * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
        property in the page/control constructor.

        * AppResourcesCompiler.cs: does not require specifying manually
        whether it's a global or local resource compiler anymore. New
        constructors take care of that.
        Changed to compile local resources on demand, when a control/page
        is parsed.

2007-03-13  Marek Habersack  <[email protected]>

        * AppResourceFilesCollection.cs: added separate constructor for
        local resources handling.

        * TemplateControlCompiler.cs: request the local resource object
        with proper virtual path.

        * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
        property in the page/control constructor.

        * AppResourcesCompiler.cs: does not require specifying manually
        whether it's a global or local resource compiler anymore. New
        constructors take care of that.
        Changed to compile local resources on demand, when a control/page
        is parsed.

2007-03-13  Marek Habersack  <[email protected]>

        * TemplateControl.cs: implement AppRelativeVirtualPath. Closes bug
        #80634.


svn path=/trunk/mcs/; revision=74159
2007-03-13 09:56:36 +00:00
Marek Habersack c0d510eb33 2007-03-12 Marek Habersack <[email protected]>
* BuildManager.cs, BaseCompiler.cs: CodeAssemblies is a collection
	of Assembly instances, not strings.

	* CachingCompiler.cs: make sure items in the CodeAssemblies and
	TopLevelAssemblies are really instances of the Assembly class
	before trying to use them.
	CodeAssemblies is a collection of Assembly instances, not
	strings.

	* AppCodeCompiler.cs: on MS.NET CodeAssemblies is a collection of
	assemblies, not paths to assemblies.

svn path=/trunk/mcs/; revision=74104
2007-03-12 09:26:55 +00:00
Marek Habersack dee3ab3311 * PageCompiler.cs, BaseCompiler.cs: refactoring: moved the
CreateProfileProperty and InternalCreatePageProperty to
	BaseCompiler from PageCompiler.

	* GlobalAsaxCompiler.cs: generate the Profile property for the
	Global_asax class.

svn path=/trunk/mcs/; revision=74036
2007-03-09 23:44:19 +00:00
Marek Habersack 1ce179138a Fix for bug 80808
svn path=/trunk/mcs/; revision=73014
2007-02-16 14:20:46 +00:00
Gert Driesen a4fd86b3e1 * BaseCompiler.cs: Fixed build on 1.0 profile.
svn path=/trunk/mcs/; revision=71383
2007-01-20 09:16:08 +00:00
Marek Habersack f289544bd1 Mark AutoHelpers as obsolete in generated code and a fix for bug #77069
svn path=/trunk/mcs/; revision=71376
2007-01-20 01:57:56 +00:00
Marek Habersack b309d37d40 Implementation of the App_Code folder compiler for ASP.NET 2.0
svn path=/trunk/mcs/; revision=67511
2006-11-08 12:08:05 +00:00
Marek Habersack 58fca48c17 Add support for App_GlobalResources and App_LocalResources
svn path=/trunk/mcs/; revision=66799
2006-10-18 20:30:10 +00:00
Chris Toshok cef1d6fc41 2006-04-20 Chris Toshok <[email protected]>
* BaseCompiler.cs: for 2.0, emit the correct namespace and class
        names in the case where you use "NS.ClassName" in the Inherits
        attribute.  Fixes bug #78135.


svn path=/trunk/mcs/; revision=59706
2006-04-20 17:14:45 +00:00
Chris Toshok 360328e019 fix another NRE
svn path=/trunk/mcs/; revision=58496
2006-03-24 21:26:26 +00:00
Chris Toshok 8237bb2866 2006-03-24 Chris Toshok <[email protected]>
* BaseCompiler.cs (GetCompiledType): fall back to CodeDomProvider
	if system.web/compilation doesn't list a compiler for our
	language.


svn path=/trunk/mcs/; revision=58493
2006-03-24 21:20:01 +00:00
Chris Toshok ffcc362a42 2006-03-07 Chris Toshok <[email protected]>
* BaseCompiler.cs: fix typo in "initialize" in multiple places.
	(Init): move the CreateMethods call here.


svn path=/trunk/mcs/; revision=57669
2006-03-07 21:58:01 +00:00
Gonzalo Paniagua Javier f269a83e07 2006-02-14 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/WebHandlerParser.cs:
	* System.Web.UI/WebServiceParser.cs:
	* System.Web.UI/UserControlParser.cs:
	* System.Web.UI/PageParser.cs: added new ctor that uses a TextReader
	as input.

	* System.Web.UI/TemplateControlParser.cs: new Reader property.
	* System.Web.UI/SimpleWebHandlerParser.cs: new Reader property and
	ctor.

	* System.Web.dll.sources: added new files.

	* System.Web.Compilation/GlobalAsaxCompiler.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/TemplateControlCompiler.cs: CreateMethods is
	now internal.

	* System.Web.Compilation/WebServiceBuildProvider.cs:
	* System.Web.Compilation/PageBuildProvider.cs:
	* System.Web.Compilation/UserControlBuildProvider.cs:
	* System.Web.Compilation/WebHandlerBuildProvider.cs: new build
	providers.

	* System.Web.Compilation/BuildProvider.cs: add assemblies.

	* System.Web.Compilation/BaseCompiler.cs: expose the provider and the
	compile unit through properties.

svn path=/trunk/mcs/; revision=56878
2006-02-14 22:02:15 +00:00
Gonzalo Paniagua Javier 6be4ffb621 2006-02-10 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Configuration_2.0/Compiler.cs:
	* System.Web.Configuration_2.0/CompilerCollection.cs: removed
	compatibility code.

	* System.Web.Configuration_2.0/BuildProviderCollection.cs: add
	GetProviderForExtension().

	* System.Web.UI/IThemeResolutionService.cs: this is now added to the
	sources file, but some other stuff does not compile yet as the
	interface changed after the beta.

	* System.Web.UI/ObjectConverter.cs: removed extra attribute.

	* System.Web.UI/ObjectStateFormatter.cs: add IStateFormatter for 2.0.

	* System.Web.UI/ICallbackEventHandler.cs: update the interface, but
	commented the 'good' stuff out, since other files need to be fixed
	too.

	* System.Web.dll.sources: add new files.

	* System.Web.Configuration/CompilationConfiguration.cs:
	* System.Web.Configuration/CompilationConfigurationHandler.cs: only
	compile these for pre-2.0 assemblies.

	* System.Web.Hosting/DefaultVirtualPathProvider.cs: add some
	comments/TODO.
	* System.Web.Hosting/HostingEnvironment.cs: initialize the
	default value for VirtualPathProvider.

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

	* System.Web.Compilation/AssemblyBuilder.cs: implemented most of it.

	* System.Web.Compilation/WebServiceCompiler.cs:
	* System.Web.Compilation/CachingCompiler.cs: update 2.0 compiler
	instance creation code.

	* System.Web.Compilation/ClientBuildManager.cs: implemented some of
	its methods. Not yet ready.

	* System.Web.Compilation/BuildManager.cs: the more interesting methods
	are implemented now.

	* System.Web.Compilation/BaseCompiler.cs: delete the temporary files
	in case of error.

	* System.Web.Compilation/BuildProvider.cs: implemented the
	Get*Compiler* protected methods.


svn path=/trunk/mcs/; revision=56781
2006-02-10 23:43:09 +00:00
Chris Toshok 34e0a74a38 2006-02-01 Chris Toshok <[email protected]>
* WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
	GetSection instead of GetWebApplicationSection.

	* CachingCompiler.cs: same.

	* AspGenerator.cs: same.

	* BaseCompiler.cs: same.


svn path=/trunk/mcs/; revision=56410
2006-02-01 19:46:13 +00:00
Gonzalo Paniagua Javier cc5d84d39d Patch by D. Moonfire that fixes several issues with 2.0 page attributes.
svn path=/trunk/mcs/; revision=54363
2005-12-14 15:49:16 +00:00
Chris Toshok 994d85ecc4 2005-11-28 Chris Toshok <[email protected]>
* CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.

	* BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.


svn path=/trunk/mcs/; revision=53584
2005-11-28 20:59:45 +00:00
Gonzalo Paniagua Javier 406046118e 2005-09-10 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Hosting/ApplicationHost.cs:
	* System.Web.Compilation/BaseCompiler.cs: set the domain's DynamicBase
	property instead of guessing it in BaseCompiler.


svn path=/trunk/mcs/; revision=49847
2005-09-10 04:04:11 +00:00
Miguel de Icaza 54079f764a Commit of changes to core files, on behalf of the team
svn path=/trunk/mcs/; revision=48944
2005-08-26 22:58:48 +00:00
Gonzalo Paniagua Javier 456c1baf05 2005-06-05 Gonzalo Paniagua Javier <[email protected]>
* BaseCompiler.cs: when the OutputAssembly is null, we can still have
	the assembly file there and be able to load it. Thanks to Rogerio and
	Mark.


svn path=/trunk/mcs/; revision=45440
2005-06-05 17:08:25 +00:00
Gonzalo Paniagua Javier 197f824568 2005-04-22 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Configuration/CompilationConfigurationHandler.cs: ensure
	TempDirectory is not empty before assigning it. Don't mangle the
	assembly names provided.

	* System.Web.Configuration/CompilationConfiguration.cs: use DynamicBase
	as the temp directory instead of Path.GetTempPath.

	* System.Web.UI/SimpleWebHandlerParser.cs:
	* System.Web.UI/TemplateParser.cs: always get the location (full path)
	for assemblies, even the ones from the GAC.

	* System.Web.Compilation/BaseCompiler.cs: check that DynamicBase
	directory exists before creating the TempFileCollection.

	The changes related to assembly names fix bug number #74500.


svn path=/trunk/mcs/; revision=43462
2005-04-22 20:34:00 +00:00
Rafael Teixeira fefa38d9db 2005-04-20 Rafael Teixeira <[email protected]>
* BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
	@Page/@Control directives to CodeDOM (VB.NET support)


svn path=/trunk/mcs/; revision=43356
2005-04-20 20:31:09 +00:00
Gonzalo Paniagua Javier 628467bbfc 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/BaseCompiler.cs:
	* System.Web.Compilation/CachingCompiler.cs:
	* System.Web.Compilation/WebServiceCompiler.cs:
	* System.Web.UI/SimpleWebHandlerParser.cs: correctly cache Type instead
	of the assembly for ashx/asmx. Otherwise we need to open the file and
	check for the class name in there. Thanks to Ben for pointing this out.

svn path=/trunk/mcs/; revision=33382
2004-09-05 19:37:58 +00:00
Gonzalo Paniagua Javier 358ae990ef 2004-07-02 Gonzalo Paniagua Javier <[email protected]>
* System.Web/TraceContext.cs: added internal HaveTrace property whose
	value is true when the page has a Trace attribute.

	* System.Web.Handlers/TraceHandler.cs: check that trace is enabled or
	throw.

	* System.Web.UI/Page.cs: added additional checks for saving/displaying
	trace data.

	* System.Web.UI/PageParser.cs: removed checks for trace enabled in
	configuration files.

	Thanks to David Taylor for most of these patch and the tests.

svn path=/trunk/mcs/; revision=30808
2004-07-07 00:45:56 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Gonzalo Paniagua Javier be31b0ce2d 2004-06-16 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/BaseCompiler.cs: try getting the Type from
	the cache before doing the real work. Remove temporary files right after
	successful compilation.

	* System.Web.Compilation/CachingCompiler.cs: added GetTypeFromCache.

	* System.Web.Compilation/UserControlCompiler.cs: nothing interesting.

	* System.Web.Compilation/WebServiceCompiler.cs: try getting the Type
	from the cache before doing anything else. Remove temp files on
	sucessful compilation.

	* System.Web.UI/SimpleWebHandlerParser.cs: implemented
	GetCompiledTypeFromCache. When we read the default directive, check the
	cache for the Type and if present, don't keep reading and store the
	type found.

	* System.Web.UI/WebHandlerParser.cs:
	* System.Web.UI/WebServiceParser.cs: try GetCompiledTypeFromCache
	before actually compiling.

svn path=/trunk/mcs/; revision=29652
2004-06-16 01:41:10 +00:00
Gonzalo Paniagua Javier 34fbc1363d 2004-06-11 Gonzalo Paniagua Javier <[email protected]>
* BaseCompiler.cs: dynamicBase is now protected. Check
	MONO_ASPNET_NODELETE here.

	* TemplateControlCompiler.cs: if the type is not known but has a
	TypeConverter, invoke ConvertFromString in the generated code.

	* WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
	the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.

	* CachingCompiler.cs: updated compilation of web services and simple
	web handlers.

svn path=/trunk/mcs/; revision=29255
2004-06-11 04:03:13 +00:00
Gonzalo Paniagua Javier 2511627962 2004-06-08 Gonzalo Paniagua Javier <[email protected]>
* BaseCompiler.cs:
	* WebServiceCompiler.cs: adapted to the 'new' CachingCompiler.
	* CachingCompiler.cs: use HttpRuntime.Cache.

svn path=/trunk/mcs/; revision=29016
2004-06-08 05:50:09 +00:00
Gonzalo Paniagua Javier 21eafae84c 2004-05-14 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/BaseCompiler.cs: use DynamicBase for the output
	assemblies.

	* System.Web.Configuration/CompilationConfiguration.cs: a null value is
	ok for TempDirectory.

	* System.Web.Hosting/AppDomainFactory.cs: set the Dynamic base for the
	AppDomain.

	Fixes bug #57726.

svn path=/trunk/mcs/; revision=27329
2004-05-14 03:01:04 +00:00
Jackson Harper 5d3bd86c5b * BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
bug #54117.

svn path=/trunk/mcs/; revision=22955
2004-02-10 20:10:19 +00:00
Gonzalo Paniagua Javier 88bd37e884 2004-01-28 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplicationFactory.cs: fixlet for session events hook.

	* System.Web.Compilation/AspGenerator.cs: handle more possible errors
	in global.asax file.

	* System.Web.Compilation/BaseCompiler.cs: added utility methods for
	creating <object> related properties and fields.

	* System.Web.Compilation/GlobalAsaxCompiler.cs: keep around applications
	and session scope objects builders. Also a list of imports and
	assemblies added in global.asax.

	* System.Web.Compilation/TemplateControlCompiler.cs: use base class
	methods for <object> stuff.

	* System.Web.UI/ApplicationFileParser.cs: check for error in directives.
	Use GlobalAsaxCompiler.CompileApplicationType for compiling.

	* System.Web.UI/ObjectTagBuilder.cs: load the Type and check for errors.

	* System.Web.UI/TemplateParser.cs: add assemblies and imports from
	global.asax.

	Now we properly create accessors for session and application objects in
	the application itself, pages and controls. First step for fixing
	bug #53387.

svn path=/trunk/mcs/; revision=22584
2004-01-28 22:19:23 +00:00
Jackson Harper 478790c70c * TemplateControlCompiler.cs: If an item has the partial caching
attribute build a PartialCachingControl in the parents __Build method.
	* BaseCompiler.cs: Add a method for adding class attributes to the
	class.
	* UserControlCompiler.cs: If caching is enabled on a user control
	add the PartialCachingAttribute to it.

svn path=/trunk/mcs/; revision=22034
2004-01-13 21:22:37 +00:00
Gonzalo Paniagua Javier de757a0b30 2003-10-14 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/BaseCompiler.cs:
	* System.Web.Configuration/CompilationConfiguration.cs: pass
	CompilerOptions and WarningLevel.

svn path=/trunk/mcs/; revision=19036
2003-10-14 12:19:14 +00:00
Gonzalo Paniagua Javier 50e79aceb8 2003-10-14 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources: new files in System.Web.Configuration.

	* System.Web.Configuration/CompilationConfiguration.cs:
	* System.Web.Configuration/CompilationConfigurationHandler.cs:
	* System.Web.Configuration/CompilerCollection.cs:
	* System.Web.Configuration/WebCompiler.cs: new files that process and
	store system.web/compilation info (compilers + assemblies).

	* System.Web.Configuration/HttpHandlersSectionHandler.cs: added option
	for an attribute to be empty.

	* System.Web.UI/BaseParser.cs: added CompilationConfig property.

	* System.Web.UI/TemplateParser.cs:
	* System.Web.UI/SimpleWebHandlerParser.cs: added CompilationConfig
	property. Don't hardcode assembly names any more, assemblies in bin
	are added depending on the configuration. The default language is
	also taken from the configuration.

	* System.Web.Compilation/BaseCompiler.cs: now gets the CodeCompiler
	from configuration files.

	In short, this changes make our ASP.NET support any language
	that has CodeDom CodeCompiler and CodeGenerator.

	VB.NET currently fails because of its buggy handling of options.

svn path=/trunk/mcs/; revision=19035
2003-10-14 11:12:47 +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 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 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 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 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 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