Lines Matching defs:nil

159       // Assigning nil to a slice.
160 Expression* nil = Expression::make_nil(location);
162 return Expression::make_slice_value(lhs_type, nil, zero, zero, location);
212 // When setting an interface to nil, we just set both fields to
217 Expression* nil = Expression::make_nil(location);
218 return Expression::make_interface_value(lhs_type, nil, nil, location);
292 Expression* nil = Expression::make_nil(location);
295 Expression::make_binary(OPERATOR_EQEQ, mtable, nil, location);
296 return Expression::make_conditional(eq, nil, descriptor, location);
325 // NULL for a nil interface.
333 // A type assertion fails when converting a nil interface.
347 // type assertion converting nil will always succeed.
1668 // This is used when indexing, bound-checking, or nil checking a string.
2920 // The nil value.
2959 { exp->write_c_string("nil"); }
2963 { ast_dump_context->ostream() << "nil"; }
2966 // Import a nil expression.
2971 imp->require_c_string("nil");
2975 // Make a nil expression.
3231 // a constant. For example, []byte(nil).
3722 // Flatten expression if a nil check must be performed and create temporary
4220 // need to check for nil. We don't bother to check for small
4221 // structs because we expect the system to crash on a nil
4223 // expression is being taken, we must always check for nil.
4233 Bexpression* nil =
4237 nil, loc);
5565 this->report_error(_("invalid comparison of nil with nil"));
6184 // An interface is nil if the first field is nil.
6213 // add nil checks. Introduce a temporary variable so that those nil
6421 // Return an expression to check *REF for nil while dereferencing
6510 // See whether the expression or any embedded pointers are nil.
6853 // nil empty interface.
6869 error_at(args->front()->location(), "use of untyped nil");
6947 Expression* nil = Expression::make_nil(loc);
6949 *pa = Expression::make_slice_value(at, nil, zero, zero, loc);
8305 Expression* nil = Expression::make_nil(location);
8306 nil = Expression::convert_for_assignment(gogo, empty, nil, location);
8316 Expression::make_conditional(arg, recover, nil, location);
9747 // pointer is nil.
9899 // index, or it may be a nil expression for the length of the array.
10409 // or it may be a nil expression for the length of the string.
10665 // dereferenced and checked for nil, so flatten into a temporary to avoid
14144 // This is used when indexing, bound-checking, or nil checking a slice.
15223 else if (imp->match_c_string("nil"))