mirror of
https://github.com/github/codeql.git
synced 2026-02-13 21:51:29 +01:00
14 lines
196 B
Ruby
14 lines
196 B
Ruby
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
|