Home | History | Annotate | Download | only in gofmt

Lines Matching full:nil

21 		rewrite = nil // disable any previous rewrite
40 if err != nil {
91 if x := recover(); x != nil {
105 objectPtrNil = reflect.ValueOf((*ast.Object)(nil))
106 scopePtrNil = reflect.ValueOf((*ast.Scope)(nil))
108 identType = reflect.TypeOf((*ast.Ident)(nil))
109 objectPtrType = reflect.TypeOf((*ast.Object)(nil))
111 callExprType = reflect.TypeOf((*ast.CallExpr)(nil))
112 scopePtrType = reflect.TypeOf((*ast.Scope)(nil))
123 // rewrite; don't follow them but replace with nil instead
129 // replace them with nil
159 // If m == nil, match checks whether pattern == val.
164 if m != nil && pattern.IsValid() && pattern.Type() == identType {
167 // wildcards only match valid (non-nil) expressions.
170 return match(nil, old, val)
195 return p == nil && v == nil || p != nil && v != nil && p.Name == v.Name
246 // if m == nil, subst returns a copy of pattern and doesn't change the line
254 if m != nil && pattern.Type() == identType {
258 return subst(nil, old, reflect.Value{})