Changeset View
Changeset View
Standalone View
Standalone View
autotests/reference/brightscript.brs.ref
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | |||||
93 | <g> </g><var>b</var><g> </g><operator>:</operator><g> </g><string>"2"</string><br/> | 93 | <g> </g><var>b</var><g> </g><operator>:</operator><g> </g><string>"2"</string><br/> | ||
94 | <g> </g><var>c</var><g> </g><operator>:</operator><g> </g><keyword>function</keyword><scope>()</scope><g> </g><line_break>:</line_break><g> </g><keyword>end function</keyword><br/> | 94 | <g> </g><var>c</var><g> </g><operator>:</operator><g> </g><keyword>function</keyword><scope>()</scope><g> </g><line_break>:</line_break><g> </g><keyword>end function</keyword><br/> | ||
95 | <operator>}</operator><br/> | 95 | <operator>}</operator><br/> | ||
96 | <g></g><br/> | 96 | <g></g><br/> | ||
97 | <var>b</var><operator>.</operator><func>foo</func><scope>(</scope><string>"string"</string><coma>,</coma><dec>1</dec><coma>,</coma><operator>{</operator><var>a</var><operator>:</operator><var>b</var><operator>}</operator><coma>,</coma><float>1.5</float><coma>,</coma><operator>[</operator><dec>1</dec><coma>,</coma><dec>2</dec><coma>,</coma><dec>3</dec><operator>]</operator><scope>)</scope><br/> | 97 | <var>b</var><operator>.</operator><func>foo</func><scope>(</scope><string>"string"</string><coma>,</coma><dec>1</dec><coma>,</coma><operator>{</operator><var>a</var><operator>:</operator><var>b</var><operator>}</operator><coma>,</coma><float>1.5</float><coma>,</coma><operator>[</operator><dec>1</dec><coma>,</coma><dec>2</dec><coma>,</coma><dec>3</dec><operator>]</operator><scope>)</scope><br/> | ||
98 | <var>a</var><g> </g><assign>=</assign><g> </g><var>b</var><operator>.</operator><func>foo</func><scope>(</scope><string>"string"</string><coma>,</coma><dec>1</dec><coma>,</coma><operator>{</operator><var>a</var><operator>:</operator><var>b</var><operator>}</operator><coma>,</coma><float>1.5</float><coma>,</coma><operator>[</operator><dec>1</dec><coma>,</coma><dec>2</dec><coma>,</coma><dec>3</dec><operator>]</operator><scope>)</scope><br/> | 98 | <var>a</var><g> </g><assign>=</assign><g> </g><var>b</var><operator>.</operator><func>foo</func><scope>(</scope><string>"string"</string><coma>,</coma><dec>1</dec><coma>,</coma><operator>{</operator><var>a</var><operator>:</operator><var>b</var><operator>}</operator><coma>,</coma><float>1.5</float><coma>,</coma><operator>[</operator><dec>1</dec><coma>,</coma><dec>2</dec><coma>,</coma><dec>3</dec><operator>]</operator><scope>)</scope><br/> | ||
99 | <g></g><br/> | 99 | <g></g><br/> | ||
100 | <var>unnamed_function</var><g> </g><assign>=</assign><g> </g><keyword>function</keyword><g> </g><scope>(</scope><g> </g><var>a</var><g> </g><keyword>as</keyword><g> </g><type>Integer</type><g> </g><scope>)</scope><g> </g><keyword>as</keyword><g> </g><type>Float</type><br/> | 100 | <var>unnamed_function</var><g> </g><assign>=</assign><g> </g><keyword>function</keyword><g> </g><scope>(</scope><g> </g><var>a</var><g> </g><keyword>as</keyword><g> </g><type>Integer</type><g> </g><scope>)</scope><g> </g><keyword>as</keyword><g> </g><type>Float</type><br/> | ||
101 | <g></g><br/> | ||||
102 | <var>a</var><g> </g><assign>=</assign><g> </g><unary>+-</unary><var>b</var><br/> | ||||
103 | <var>a</var><g> </g><assign>=</assign><g> </g><dec>&h42abcdef</dec><br/> | ||||
104 | <var>c</var><g> </g><assign>=</assign><g> </g><var>var</var><operator>@</operator><var>attr</var><br/> | ||||
101 | <keyword>end function</keyword><br/> | 105 | <keyword>end function</keyword><br/> | ||
102 | <g></g><br/> | 106 | <g></g><br/> | ||
103 | <var>unnamed_sub</var><g> </g><assign>=</assign><g> </g><keyword>sub</keyword><g> </g><scope>(</scope><g> </g><var>a</var><g> </g><keyword>as</keyword><g> </g><type>Integer</type><g> </g><scope>)</scope><g> </g><keyword>as</keyword><g> </g><type>Void</type><br/> | 107 | <var>unnamed_sub</var><g> </g><assign>=</assign><g> </g><keyword>sub</keyword><g> </g><scope>(</scope><g> </g><var>a</var><g> </g><keyword>as</keyword><g> </g><type>Integer</type><g> </g><scope>)</scope><g> </g><keyword>as</keyword><g> </g><type>Void</type><br/> | ||
104 | <keyword>end sub</keyword><br/> | 108 | <keyword>end sub</keyword><br/> | ||
105 | <keyword>endFunction</keyword><br/> | 109 | <keyword>endFunction</keyword><br/> |