Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
source_options.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
7namespace impeller {
8namespace compiler {
9
11
12SourceOptions::SourceOptions(const std::string& file_name,
13 SourceType source_type)
14 : type(source_type == SourceType::kUnknown
15 ? SourceTypeFromFileName(file_name)
16 : source_type),
17 file_name(file_name) {}
18
20
21} // namespace compiler
22} // namespace impeller
SourceType SourceTypeFromFileName(const std::string &file_name)
Definition types.cc:30