mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: check (mut f Foo)
syntax
This commit is contained in:
@ -27,7 +27,7 @@ pub mut:
|
||||
message_handler &TestMessageHandler
|
||||
}
|
||||
|
||||
pub fn (mh mut TestMessageHandler) append_message(msg string) {
|
||||
pub fn (mut mh TestMessageHandler) append_message(msg string) {
|
||||
mh.mtx.lock()
|
||||
mh.messages << msg
|
||||
mh.mtx.unlock()
|
||||
@ -54,11 +54,11 @@ pub fn new_test_session(_vargs string) TestSession {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn (ts mut TestSession) init() {
|
||||
pub fn (mut ts TestSession) init() {
|
||||
ts.benchmark = benchmark.new_benchmark_no_cstep()
|
||||
}
|
||||
|
||||
pub fn (ts mut TestSession) test() {
|
||||
pub fn (mut ts TestSession) test() {
|
||||
ts.init()
|
||||
mut remaining_files := []string{}
|
||||
for dot_relative_file in ts.files {
|
||||
@ -111,7 +111,7 @@ pub fn (ts mut TestSession) test() {
|
||||
eprintln(term.h_divider('-'))
|
||||
}
|
||||
|
||||
pub fn (m mut TestMessageHandler) display_message() {
|
||||
pub fn (mut m TestMessageHandler) display_message() {
|
||||
m.mtx.lock()
|
||||
defer {
|
||||
m.messages.clear()
|
||||
|
@ -92,7 +92,7 @@ pub mut:
|
||||
vvlocation string // v.v or compiler/ or cmd/v, depending on v version
|
||||
}
|
||||
|
||||
pub fn (vgit_context mut VGitContext) compile_oldv_if_needed() {
|
||||
pub fn (mut vgit_context VGitContext) compile_oldv_if_needed() {
|
||||
vgit_context.vexename = if os.user_os() == 'windows' { 'v.exe' } else { 'v' }
|
||||
vgit_context.vexepath = os.real_path(os.join_path(vgit_context.path_v, vgit_context.vexename))
|
||||
mut command_for_building_v_from_c_source := ''
|
||||
|
Reference in New Issue
Block a user