Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit fae42a9

Browse files
committed
Fix errors on saving T4MVC.tt
1 parent 595e12f commit fae42a9

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/AddIns/Misc/PackageManagement/Project/Src/VisualStudio/SDTE.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1717
// DEALINGS IN THE SOFTWARE.
1818

19-
//using System;
20-
//using ICSharpCode.PackageManagement.EnvDTE;
21-
//
22-
//namespace Microsoft.VisualStudio.Shell.Interop
23-
//{
24-
// public class SDTE : DTE
25-
// {
26-
// public SDTE()
27-
// {
28-
// }
29-
// }
30-
//}
19+
using System;
20+
using ICSharpCode.PackageManagement.EnvDTE;
21+
22+
namespace Microsoft.VisualStudio.Shell.Interop
23+
{
24+
public class SDTE : DTE
25+
{
26+
public SDTE()
27+
{
28+
}
29+
}
30+
}

src/Main/SharpDevelop/Parser/ParserServiceEntry.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public ParseInformation GetCachedParseInformation(ITextSourceVersion version, IP
181181
#region Parse
182182
public ParseInformation Parse(ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
183183
{
184-
if (fileContent == null) {
184+
if (fileContent == null && parser != null) {
185185
fileContent = parser.GetFileContent(fileName);
186186
}
187187

@@ -190,7 +190,7 @@ public ParseInformation Parse(ITextSource fileContent, IProject parentProject, C
190190

191191
public IUnresolvedFile ParseFile(ITextSource fileContent, IProject parentProject, CancellationToken cancellationToken)
192192
{
193-
if (fileContent == null) {
193+
if (fileContent == null && parser != null) {
194194
fileContent = parser.GetFileContent(fileName);
195195
}
196196

0 commit comments

Comments
 (0)