return false;
return ResolveAnonymousDelegate (ec);
- return true;
}
public MethodInfo GetMethodBuilder (EmitContext ec)
public AssemblyBuilder Builder;
bool is_cls_compliant;
bool wrap_non_exception_throws;
- bool has_extension_method;
public Attribute ClsCompliantAttribute;
ListDictionary declarative_security;
#if GMCS_SOURCE
+ bool has_extension_method;
public AssemblyName Name;
MethodInfo add_type_forwarder;
ListDictionary emitted_forwarders;
}
public bool HasExtensionMethods {
- set { has_extension_method = value; }
+ set {
+#if GMCS_SOURCE
+ has_extension_method = value;
+#endif
+ }
}
public bool IsClsCompliant {
/// </summary>
Block current_block;
- Delegate current_delegate;
-
AnonymousMethodExpression current_anonymous_method;
/// <summary>
int top = list.Count;
start_block (lexer.Location);
- Block assign_block = current_block;
for (int i = 0; i < top; i++){
Pair p = (Pair) list [i];
bool handle_constraints = false;
bool handle_typeof = false;
bool handle_var = false;
- bool query_parsing;
Location current_location;
Location current_comment_location = Location.Null;
ArrayList escaped_identifiers = new ArrayList ();
+#if GMCS_SOURCE
+ bool query_parsing;
+#endif
+
static bool IsLinqEnabled {
get {
return RootContext.Version == LanguageVersion.LINQ;
}
}
- public bool QueryParsing {
- set {
- query_parsing = value;
- }
- }
-
public XmlCommentState doc_state {
get { return xml_doc_state; }
set {
return true;
}
- bool parse_generic_dimension (out int dimension)
- {
- dimension = 1;
-
- again:
- int the_token = token ();
- if (the_token == Token.OP_GENERICS_GT)
- return true;
- else if (the_token == Token.COMMA) {
- dimension++;
- goto again;
- }
-
- return false;
- }
-
bool parse_less_than ()
{
start:
else
nullable_pos = -1;
}
+
+ public bool QueryParsing {
+ set {
+ query_parsing = value;
+ }
+ }
+
+ bool parse_generic_dimension (out int dimension)
+ {
+ dimension = 1;
+
+ again:
+ int the_token = token ();
+ if (the_token == Token.OP_GENERICS_GT)
+ return true;
+ else if (the_token == Token.COMMA) {
+ dimension++;
+ goto again;
+ }
+
+ return false;
+ }
#endif
public int peek_token ()
{
#if GMCS_SOURCE
ILGenerator ig = ec.ig;
- IMemoryLocation ml;
+// IMemoryLocation ml;
MethodInfo ci = TypeManager.activator_create_instance.MakeGenericMethod (
new Type [] { type });
{
ArrayList parameters;
TypeContainer parent;
- Location loc;
TypeContainer anonymous_type;
public AnonymousType (ArrayList parameters, TypeContainer parent, Location loc)
LocatedToken token;
string name;
Expression expression;
- Type type;
public LocatedToken Token {
get { return token; }
get { return name; }
}
- public Type Type {
- get { return type; }
- }
-
public Expression Expression {
get { return expression; }
}
AnonymousTypeParameter other = o as AnonymousTypeParameter;
return other != null && Name == other.Name && Type == other.Type;
}
+
+ public override int GetHashCode ()
+ {
+ return name.GetHashCode ();
+ }
public override Expression DoResolve (EmitContext ec)
{
TypeExpr enumerable_type;
TypeArguments generic_args;
TypeExpr generic_enumerator_type;
+#if GMCS_SOURCE
TypeExpr generic_enumerable_type;
-
+#endif
+
public IteratorHost (Iterator iterator)
: base (iterator.Container.Toplevel, iterator.Host, iterator.GenericMethod,
iterator.Location)