Skip to content

Instantly share code, notes, and snippets.

View mkrueger's full-sized avatar

Mike Krüger mkrueger

View GitHub Profile
ResolveResult IAstVisitor<ResolveResult>.VisitUnsafeStatement(UnsafeStatement unsafeStatement)
{
return voidResult;
}
ResolveResult IAstVisitor<ResolveResult>.VisitUnsafeStatement(UnsafeStatement unsafeStatement)
{
resolver = resolver.PushBlock();
ScanChildren(unsafeStatement);
resolver = resolver.PopBlock();
return voidResult;
}
---------------------------
load:/usr/lib/mono/2.0/mscorlib.dll
load:/usr/lib/mono/2.0/System.dll
load:/usr/lib/mono/2.0/System.Runtime.Remoting.dll
load:/usr/lib/mono/2.0/Microsoft.Build.Engine.dll
load:/usr/lib/mono/2.0/Microsoft.Build.Framework.dll
load:/usr/lib/mono/2.0/Microsoft.Build.Utilities.dll
load:/usr/lib/mono/3.5/Microsoft.Build.Engine.dll
load:/usr/lib/mono/3.5/Microsoft.Build.Framework.dll
load:/usr/lib/mono/3.5/Microsoft.Build.Utilities.v3.5.dll
------------------/home/mike/TestBug/TestBug/Default.aspx.designer.cs
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
------------------/home/mike/TestBug/TestBug/Default.aspx.designer.cs
using System;
using System.Web;
using System.Web.UI;
namespace TestBug
{
public partial class Default
{
protected System.Web.UI.WebControls.Button button1;
}
We need separate icons for each type:
+ class
+ interface
+ struct
+ enum
+ delegate
Members:
public class FooFoo
{
protected NewFooBar FooBar {
get; set;
}
protected class NewFooBar<T,B>
{
}
public IList<ITypeDefinition> NestedTypes {
get {
IList<ITypeDefinition> result = LazyInit.VolatileRead(ref this.nestedTypes);
if (result != null) {
return result;
} else {
result = (
from part in parts
from nestedTypeRef in part.NestedTypes
group nestedTypeRef by nestedTypeRef.Name into g
void Example3 ()
{
// More stingy case. Equivalent to Example2() only if MainClass is of reference type.
// Also, how to decide whether the assignments after the Add() calls belong to the previous
// or the next call to Add()? Needs data flow/dependency analysis?
MainClass tmp;
var items = new List<MainClass> ();
tmp = new MainClass ();
items.Add (tmp);
void Example3 ()
{
// More stingy case. Equivalent to Example2() only if MainClass is of reference type.
// Also, how to decide whether the assignments after the Add() calls belong to the previous
// or the next call to Add()? Needs data flow/dependency analysis?
MainClass tmp;
var items = new List<MainClass> ();
tmp = new MainClass ();
tmp.Data = "data";