N. Taylor Mullen
5912475a24
Change Execute rendering to be async.
...
Added the using statement required for async rendering.
2014-03-17 11:28:43 -07:00
N. Taylor Mullen
b1c49a2535
Remove CodeDOM from net45 Razor.
...
Removed all System.CodeDOM related code from net45. This involved modifying some existing code paths and most of all reducing the complexity of all of the CodeGenerators. Added some factory creation methods to build CodeBuilders. Ran code analysis and made adjustments to pass analysis.
2014-03-14 16:05:23 -07:00
David Fowler
10c10ab2e7
Added required packages for K
2014-03-07 02:46:45 -08:00
N. Taylor Mullen
6ea8d7721b
Re-applied code review changes for formatting fix.
...
The previous fix was accidentally overridden. Also changed how we
render chunk block's children. New way avoids casts and removes logic
from base.
2014-03-05 11:24:06 -08:00
N. Taylor Mullen
549e36b803
Fix CodeGeneration process to format correctly within cshtml.
...
Added newlines inbetween ending line pragma's and code. Without the extra line the document does not format correctly. Separated expression and statement padding functionality. Statements need to have 1 less padding to account for the transition. Changed how runtime and design time code generates to enable accurate debugging experiences in runtime and functional formatting experiences during design time.
2014-03-04 12:06:00 -08:00
N. Taylor Mullen
b6082d1523
Modify tests to account for no indent helpers.
...
Modified outputs of generated files to not indent helpers. Also fixed LineMapping verifications.
2014-03-04 12:05:59 -08:00
N. Taylor Mullen
f5759635b1
Modify tests to account for no indent helpers.
...
Modified outputs of generated files to not indent helpers. Also fixed LineMapping verifications.
2014-02-26 11:12:12 -08:00
N. Taylor Mullen
9f05cf8fbb
Write helper method template functions with no indent.
...
Also removed capturing of the LineMapping (wasn't being used) for the CSharpHelperVisitor.
2014-02-26 11:12:02 -08:00
N. Taylor Mullen
49ffb5ae81
Map semicolon's in using statements.
...
This allows for users to write "@using System;" and still have proper intellisense and mapping. Also removed some legacy code that I came across when running tests.
2014-02-25 14:14:02 -08:00
David Fowler
c28b1c538d
Merge pull request #12 from nguerrera/dev
...
Remove #if NET45 for GetUnicodeCategory and just use CharUnicodeInfo everywhere.
2014-02-18 10:51:53 -08:00
Nick Guerrera
2bdbd49966
Remove #if NET45 for GetUnicodeCategory and just use CharUnicodeInfo everywhere.
...
.NET FX Team will not be adding Char.GetUnicodeCategory because it breaks layering. We cannot have a dependency form System.Runtime.dll to System.Globalization.dll.
2014-02-17 23:28:52 -08:00
N. Taylor Mullen
f43a17369c
Transition tests to use new CodeTree.
...
Previously they would use CodeDOM dependent concepts.
2014-02-13 15:03:19 -08:00
N. Taylor Mullen
da192d7c96
Fix scoping spacing for pragmas and curly braces.
...
If the writer did not write anything it would throw when attempting to do .Last().
2014-02-13 14:32:04 -08:00
N. Taylor Mullen
cadc2fc67e
Add comparison methods to mapping classes.
...
This involved adding Equals and == methods to LineMapping.cs and MappingLocation.cs.
2014-02-13 14:32:02 -08:00
N. Taylor Mullen
fa342287ad
Move semicolon out from pragma for usings.
2014-02-13 14:32:00 -08:00
N. Taylor Mullen
2ff6c12347
Move helper function accessor code outside pragma.
2014-02-13 14:31:58 -08:00
N. Taylor Mullen
dcf35ca20b
Add padding support to the functions directive.
...
Exposed the CreateCodeMapping method on the CSharpCodeVisitor.
2014-02-13 14:31:38 -08:00
Pranav K
3afb31b78b
Modify SetBaseTYpeCodeGenerator to use value from BaseType instead of
...
parsed content
2014-02-13 12:45:04 -08:00
N. Taylor Mullen
8db45f7564
Add user-based padding support.
...
Added a CSharpPaddingBuilder based on the existing
CodeGeneratorPaddingHelper to allow accurate padding within the generated
C# files. Also created tests based on the existing PaddingTest tests to
verify padding functionality.
2014-02-12 12:07:39 -08:00
Pranav K
63e55ce776
Updating resx strings to use tt format
2014-02-12 10:11:23 -08:00
N. Taylor Mullen
ff80c86e0c
Fixed common resources resx.
2014-02-10 11:57:49 -08:00
N. Taylor Mullen
d85927166b
Remove unneeded chunk data.
...
Instead lets keep utilizing the Context's state to properly generate a C# file.
2014-02-10 11:49:49 -08:00
David Fowler
47b09a9f31
Workaround myget being down
2014-02-07 10:08:47 -08:00
N. Taylor Mullen
bc3d32ec74
Modify base Visitor class to be more generic.
...
This involved adding more boiler plate to the base of the visitor classes such as a Writer and a Context. By following this contract for new visitors we'll ensure that visitors have enough information to add new features to Razor.
2014-02-04 14:56:00 -08:00
N. Taylor Mullen
a9d4cd9089
Remove Snippet dependency
...
No need to have a snippet class when we only ever use the value of a snippet and only ever have one.
2014-02-04 14:53:52 -08:00
N. Taylor Mullen
57e0ef4774
Revert changes to CSharpDesignTimeHelpersVisitor.
...
Without the initial code tree acceptance you end up stack overflowing. Also removed a validation check that ensures that there's always a base type (not true).
2014-02-04 11:59:50 -08:00
Pranav K
57854b2cc0
Refactoring CSharpCodeWriter
...
* Using CodeGeneratorContext to pass around metadata.
* Tweaks in CSharpCodeWriter to use the right type name
* Adding a sample unit test
2014-02-03 17:04:09 -08:00
Pranav K
68bb44d73e
Updating Resx designer file to minimize conflicts after resx change
2014-02-03 13:33:00 -08:00
Pranav K
12fa69c7bc
Updating build.cmd to cache NuGet.exe
2014-02-02 08:18:43 -08:00
Pranav K
1634c74ff4
Remove and sort usings across the solution
2014-01-31 10:24:07 -08:00
N. Taylor Mullen
7f0878c1b8
Comment ifdefs and fix K10 functionality
2014-01-30 15:50:20 -08:00
Pranav K
9f80b7d1c8
Relocation resx file to root so that it's correctly embedded
2014-01-29 22:23:45 -08:00
David Fowler
29009fe3af
Updated the build files.
2014-01-28 22:18:20 -08:00
N. Taylor Mullen
73dae5fcaa
Added an output validator to make a best-effort attempt at validating old and new codeDOM/codeTree output.
2014-01-28 17:05:48 -08:00
David Fowler
03164325b6
Removed the clear for sources.
2014-01-27 23:24:58 -08:00
David Fowler
b1ff6d32d3
Fixed up resources.
2014-01-27 21:30:53 -08:00
David Fowler
b9c2bcecb7
Updated build.cmd
2014-01-27 19:32:50 -08:00
N. Taylor Mullen
3a214ab213
ifdef all of the razor bits that are reliant on non-coreclr bits.
...
Big thing we're missing is Char.GetUnicodeCategory(...) and Thread.Yield. Tried to do my best to fill in the blanks. Ripped out VB.
2014-01-27 18:52:02 -08:00
David Fowler
29571cce6d
Added nuget.config
2014-01-27 17:24:45 -08:00
N. Taylor Mullen
521a5c8517
Start to add a CodeTree codegen.
...
This addition will eventually replace CodeDOM to allow for the k10 project to build. It is a new type of codegeneration method that is highly extensible.
2014-01-27 16:46:17 -08:00
David Fowler
67c3b2b080
Skip the cache for KoreBuild
2014-01-26 01:29:31 -08:00
David Fowler
c1321773a7
Removed csproj files.
2014-01-25 17:24:15 -08:00
David Fowler
be66f594af
Updated project files.
2014-01-25 02:27:44 -08:00
David Fowler
eb24202709
Updated build.
2014-01-25 02:25:12 -08:00
David Fowler
8cc117c48f
Updated build.
2014-01-24 02:21:50 -08:00
David Fowler
854cb87b42
Updated version
2014-01-24 01:21:42 -08:00
David Fowler
77dd7e40eb
Updated build.
2014-01-23 23:12:34 -08:00
David Fowler
55b697a142
Updated build to add restore.
2014-01-21 21:52:15 -08:00
David Fowler
084d6e3544
Added initial build.
2014-01-21 20:17:07 -08:00
N. Taylor Mullen
771da62400
Removed a lot of the Assert extensibility types
2014-01-18 23:43:51 -08:00