declaration_list
{ "{"
field_declaration
modifier
private "private"
modifier
static "static"
variable_declaration
nullable_type
predefined_type "string"
? "?"
variable_declarator
identifier "_customConfigDir"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "ScanningContext"
variable_declarator
identifier "_scanningContext"
; ";"
constructor_declaration (+83 nodes collapsed)
property_declaration
modifier
private "private"
identifier "ISaneInstallation"
identifier "Installation"
accessor_list
{ "{"
accessor_declaration
get "get"
; ";"
} "}"
method_declaration (+338 nodes collapsed)
method_declaration (+341 nodes collapsed)
method_declaration
modifier
internal "internal"
identifier "ScanCaps"
identifier "GetSaneCaps"
parameter_list
( "("
parameter
identifier "ISaneDevice"
identifier "device"
, ","
parameter
predefined_type "string"
identifier "backend"
) ")"
block
{ "{"
local_declaration_statement (+22 nodes collapsed)
local_declaration_statement
variable_declaration
nullable_type
identifier "PerSourceCaps"
? "?"
variable_declarator
identifier "flatbed"
= "="
null_literal "null"
; ";"
local_declaration_statement
variable_declaration
nullable_type
identifier "PerSourceCaps"
? "?"
variable_declarator
identifier "feeder"
= "="
null_literal "null"
; ";"
local_declaration_statement
variable_declaration
nullable_type
identifier "PerSourceCaps"
? "?"
variable_declarator
identifier "duplex"
= "="
null_literal "null"
; ";"
if_statement (+38 nodes collapsed)
if_statement (+38 nodes collapsed)
if_statement
if "if"
( "("
binary_expression
binary_expression
invocation_expression
member_access_expression
identifier "controller"
. "."
identifier "TrySet"
argument_list
( "("
argument
member_access_expression
identifier "SaneOptionNames"
. "."
identifier "SOURCE"
, ","
argument
member_access_expression
identifier "SaneOptionMatchers"
. "."
identifier "Duplex"
) ")"
|| "||"
invocation_expression
member_access_expression
identifier "controller"
. "."
identifier "TrySet"
argument_list
( "("
argument
member_access_expression
identifier "SaneOptionNames"
. "."
identifier "ADF_MODE1"
, ","
argument
member_access_expression
identifier "SaneOptionMatchers"
. "."
identifier "Duplex"
) ")"
|| "||"
invocation_expression
member_access_expression
identifier "controller"
. "."
identifier "TrySet"
argument_list
( "("
argument
member_access_expression
identifier "SaneOptionNames"
. "."
identifier "ADF_MODE2"
, ","
argument
member_access_expression
identifier "SaneOptionMatchers"
. "."
identifier "Duplex"
) ")"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "duplex"
= "="
invocation_expression
identifier "GetPerSourceCaps"
argument_list
( "("
argument
identifier "controller"
) ")"
; ";"
} "}"
return_statement (+90 nodes collapsed)
} "}"
method_declaration (+400 nodes collapsed)
method_declaration (+149 nodes collapsed)
method_declaration (+41 nodes collapsed)
method_declaration (+145 nodes collapsed)
method_declaration (+143 nodes collapsed)
method_declaration (+26 nodes collapsed)
method_declaration (+35 nodes collapsed)
method_declaration (+538 nodes collapsed)
method_declaration (+311 nodes collapsed)
method_declaration (+828 nodes collapsed)
method_declaration (+263 nodes collapsed)
method_declaration (+303 nodes collapsed)
method_declaration (+176 nodes collapsed)
method_declaration (+271 nodes collapsed)
method_declaration (+186 nodes collapsed)
method_declaration (+116 nodes collapsed)
method_declaration (+66 nodes collapsed)
method_declaration (+351 nodes collapsed)
class_declaration (+42 nodes collapsed)
comment "// if (options.BitDepth == BitDepth.Color)"
comment "// {"
comment "// ChooseStringOption(\"--mode\", x => x == \"Color\");"
comment "// ChooseNumericOption(\"--depth\", 8);"
comment "// }"
comment "// else if (options.BitDepth == BitDepth.Grayscale)"
comment "// {"
comment "// ChooseStringOption(\"--mode\", x => x == \"Gray\");"
comment "// ChooseNumericOption(\"--depth\", 8);"
comment "// }"
comment "// else if (options.BitDepth == BitDepth.BlackAndWhite)"
comment "// {"
comment "// if (!ChooseStringOption(\"--mode\", x => x == \"Line"...
comment "// {"
comment "// ChooseStringOption(\"--mode\", x => x == \"Halft"...
comment "// }"
comment "// ChooseNumericOption(\"--depth\", 1);"
comment "// ChooseNumericOption(\"--threshold\", (-options.Brig"...
comment "// }"
} "}"