1*b2fa4294SXin Li"""The input file for the aspect test""" 2*b2fa4294SXin Li 3*b2fa4294SXin Lidef my_aspect_impl(ctx): 4*b2fa4294SXin Li _ignore = [ctx] # @unused 5*b2fa4294SXin Li return [] 6*b2fa4294SXin Li 7*b2fa4294SXin Limy_aspect = aspect( 8*b2fa4294SXin Li implementation = my_aspect_impl, 9*b2fa4294SXin Li doc = "This is my aspect. It does stuff.", 10*b2fa4294SXin Li attr_aspects = ["deps", "attr_aspect"], 11*b2fa4294SXin Li attrs = { 12*b2fa4294SXin Li "first": attr.label(mandatory = True, allow_single_file = True), 13*b2fa4294SXin Li "second": attr.string_dict(mandatory = True), 14*b2fa4294SXin Li }, 15*b2fa4294SXin Li) 16*b2fa4294SXin Li 17*b2fa4294SXin Li# buildifier: disable=unsorted-dict-items 18*b2fa4294SXin Liother_aspect = aspect( 19*b2fa4294SXin Li implementation = my_aspect_impl, 20*b2fa4294SXin Li doc = "This is another aspect.", 21*b2fa4294SXin Li attr_aspects = ["*"], 22*b2fa4294SXin Li attrs = { 23*b2fa4294SXin Li "_hidden": attr.string(), 24*b2fa4294SXin Li "third": attr.int(mandatory = True), 25*b2fa4294SXin Li }, 26*b2fa4294SXin Li) 27