This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -369,14 +369,14 @@ | |
if (pos < 0) | |
return; | |
- editor.Document.BeginAtomicUndo (); | |
- var oldCaret = editor.Caret.Offset; | |
- | |
- var inserted = editor.Insert (pos, editor.EolMarker + directive.ToString ()); | |
- if (preserveCaretPosition) { | |
- editor.Caret.Offset = (pos < oldCaret)? oldCaret + inserted : oldCaret; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.InvalidCastException: Das Objekt des Typs "Mono.CSharp.ExplicitBlock" kann nicht in Typ "Mono.CSharp.ToplevelBlock" umgewandelt werden. | |
bei Mono.CSharp.CSharpParser.case_142() in c:\work\newresolver\monodevelop\main\contrib\ICSharpCode.NRefactory.CSharp\Parser\mcs\cs-parser.jay:Zeile 1265. | |
bei Mono.CSharp.CSharpParser.yyparse(yyInput yyLex) in c:\work\newresolver\monodevelop\main\contrib\ICSharpCode.NRefactory.CSharp\Parser\mcs\cs-parser.jay:Zeile 1243. | |
bei Mono.CSharp.CSharpParser.parse() in c:\work\newresolver\monodevelop\main\contrib\ICSharpCode.NRefactory.CSharp\Parser\mcs\cs-parser.jay:Zeile 6580. | |
bei Mono.CSharp.CompilerCallableEntryPoint.ParseFile(String[] args, Stream input, String inputFile, ReportPrinter reportPrinter) in c:\work\newresolver\monodevelop\main\contrib\ICSharpCode.NRefactory.CSharp\Parser\mcs\driver.cs:Zeile 458. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class MyClass | |
{ | |
static void Test (ConsoleColor color) | |
{ | |
} | |
static void Test (ConsoleKey key) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS | |
Stacktrace: | |
at (wrapper managed-to-native) object.__icall_wrapper_mono_array_new_specific (intptr,int) <IL 0x0000e, 0xffffffff> | |
at System.Collections.Concurrent.SplitOrderedList`2<string, System.Collections.Generic.KeyValuePair`2<string, ICSharpCode.NRefactory.Semantics.ResolveResult>>..ctor (System.Collections.Generic.IEqualityComparer`1<string>) <IL 0x00007, 0x00027> | |
at System.Collections.Concurrent.ConcurrentDictionary`2..ctor (System.Collections.Generic.IEqualityComparer`1<TKey>) <IL 0x0000f, 0x00059> | |
at System.Collections.Concurrent.ConcurrentDictionary`2..ctor () <IL 0x00006, 0x00043> | |
at ICSharpCode.NRefactory.CSharp.TypeSystem.ResolvedUsingScope..ctor (ICSharpCode.NRefactory.CSharp.TypeSystem.CSharpTypeResolveContext,ICSharpCode.NRefactory.CSharp.TypeSystem.UsingScope) <IL 0x00001, 0x00037> | |
at ICSharpCode.NRefactory.CSharp.TypeSystem.UsingScope.Resolve (ICSharpCode.NRefactory.TypeSystem.ICompilation) [0x00045] in /home/mike/work/m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override object Visit (Constant constant) | |
{ | |
if (constant.GetValue () == null) | |
return new NullReferenceExpression (Convert (constant.Location)); | |
string literalValue; | |
if (constant is ILiteralConstant) { | |
literalValue = new string (((ILiteralConstant)constant).ParsedValue); | |
} else { | |
literalValue = constant.GetValueAsLiteral (); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bei System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) | |
bei System.Environment.get_StackTrace() | |
bei ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ICSharpCode.NRefactory.CSharp.IAstVisitor<System.Object,ICSharpCode.NRefactory.Semantics.ResolveResult>.VisitForeachStatement(ForeachStatement foreachStatement, Object data) in c:\work\monodevelop\main\contrib\ICSharpCode.NRefactory.CSharp\Resolver\ResolveVisitor.cs:Zeile 2531. | |
bei ICSharpCode.NRefactory.CSharp.ForeachStatement.AcceptVisitor[T,S](IAstVisitor`2 visitor, T data) in c:\work\monodevelop\main\contrib\ICSharpCode.NRefactory.CSharp\Ast\Statements\ForeachStatement.cs:Zeile 85. | |
bei ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Scan(AstNode node) in c:\work\monodevelop\main\contrib\ICSharpCode.NRefactory.CSharp\Resolver\ResolveVisitor.cs:Zeile 186. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bei System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) | |
bei System.Environment.get_StackTrace() | |
bei ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ICSharpCode.NRefactory.CSharp.IAstVisitor<System.Object,ICSharpCode.NRefactory.Semantics.ResolveResult>.VisitForeachStatement(ForeachStatement foreachStatement, Object data) in c:\work\monodevelop\main\contrib\ICSharpCode.NRefactory.CSharp\Resolver\ResolveVisitor.cs:Zeile 2531. | |
bei ICSharpCode.NRefactory.CSharp.ForeachStatement.AcceptVisitor[T,S](IAstVisitor`2 visitor, T data) in c:\work\monodevelop\main\contrib\ICSharpCode.NRefactory.CSharp\Ast\Statements\ForeachStatement.cs:Zeile 85. | |
bei ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.<>c__DisplayClass1.<GetResolveResult>b__0() in c:\work\monodevelop\main\contrib\ICSharpCode.NRefactory.CSharp\Resolver\ResolveVisitor.cs:Zeile 420. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Foobar | |
{ | |
class MainClass | |
{ | |
public enum Foo | |
{ | |
Value1, | |
Value2 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Rewriter: DepthFirstAstVisitor | |
{ | |
public override void VisitIdentifier (Identifier identifier) | |
{ | |
if (identifier.Name == "M") | |
identifier.ReplaceWith ("Main"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Rewriter: DepthFirstAstVisitor | |
{ | |
public override void VisitIdentifier (Identifier identifier) | |
{ | |
if (identifier.Name == "M") | |
identifier.ReplaceWith (Identifier.Create ("Main")); | |
} | |
} | |
OlderNewer