# File lib/puppet/parser/compiler.rb, line 56 56: def class_set(name, scope) 57: if existing = @class_scopes[name] 58: if existing.nodescope? != scope.nodescope? 59: raise Puppet::ParseError, "Cannot have classes, nodes, or definitions with the same name" 60: else 61: raise Puppet::DevError, "Somehow evaluated %s %s twice" % [ existing.nodescope? ? "node" : "class", name] 62: end 63: end 64: @class_scopes[name] = scope 65: @catalog.add_class(name) unless name == "" 66: end