mirror of
https://github.com/github/codeql.git
synced 2026-02-23 10:23:41 +01:00
16 lines
226 B
Ruby
16 lines
226 B
Ruby
class ViewComponent::Base
|
|
end
|
|
|
|
class View1 < ViewComponent::Base
|
|
def initialize(x)
|
|
@x = x
|
|
end
|
|
|
|
def foo
|
|
sink(@x) # $ hasValueFlow=1 $ hasValueFlow=2
|
|
end
|
|
|
|
def set(x)
|
|
@x = x
|
|
end
|
|
end |